SAS Visual Analytics Viewer and SAS Report Viewer might fail with the following error when the report contains image objects:
The image for this report object is missing or invalid
A SAS Visual Analytics report might print, but the image is missing in the generated PDF file.
The following display illustrates the problem in SAS Report Viewer:
When this problem occurs in SAS Visual Analytics Viewer, the SAS Transport Services log might contain this exception:
javax.imageio.IIOException: Unsupported Image Type
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1074)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:1045)
at javax.imageio.ImageIO.read(ImageIO.java:1448)
at javax.imageio.ImageIO.read(ImageIO.java:1352)
This problem can occur if you are using the CMYK color model, which is not supported.
To circumvent this issue, save the image using the supported RGB color model. Then, update the image used in the report.
In addition, the same error message might occur in SAS Report Viewer when uploading an image file that exceeds the value set for the imageDefaultMaxBytes property and the Scale type option is set to None in the image report object.
The imageDefaultMaxBytes property is defined under the sas.reportpackages.properties for the Report Packages service. The default is 307,200 bytes.
If the image file exceeds this limit but the Scale type option is set to an option other than None, then the image size is automatically scaled down. Also, the following warning appears for the Report Packages service:
image '/files/files/91d2002c-78a3-4bea-99d9-b97b55f4abe2' (ve8.jpg) exceeded data limit - resized from 506426 to 101743 bytes