Question
Capgemini
US
Last activity: 17 Jun 2016 12:21 EDT
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.