Question

2
Replies
261
Views
VikashS4648 Member since 2014 6 posts
Capgemini
Posted: 4 years ago
Last activity: 4 years 3 months ago
Closed

How to read .tif file in Pega

We are trying to attach and read .tiff files and also show the image on a section. By using OOTB code, we can attach all kinds of files, JPEG,TIFF. We are able to download the attached tiff files seperatly from the attachment dialog box for the tiff file without an issue.

But when we are reading / parsing the tiff files using the basecode64 and below code, it gives null output and hence throwing null pointer exception.

originalImage = javax.imageio.ImageIO.read(arrayInputStream);

I guess the JAVAX image file library is not supporting the tiff file. Please provide us the supporting method to parse the tiff file.

User Interface
Moderation Team has archived post
Share this page LinkedIn