Question

2
Replies
292
Views
Close popover
Vikash Sarawgi (VikashS4648)
Capgemini

Capgemini
US
VikashS4648 Member since 2014 6 posts
Capgemini
Posted: June 13, 2016
Last activity: June 17, 2016
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 Experience
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.