Issue:
Batch Instances failing in folder import module with error message “Exception in breaking the input file. Byte array is not a valid JPEG-file” error in the logs

 

Solution: 

We have checked the provided files and after analyzing the same we can see that the file has a compression of JPEG. Currently there is a known issue with ITEXT  while converting JPEG and JPEG-2000 compression type. The same has already been fixed in our next version 4.5.
The current work around is to use tiff file with size less than 15MB or to change the compression of these images from where they are getting originated. In Ephesoft Transact 4.5 which is the next release version we have already taken care of this issue.
Additional Information:
Currently the conversion flow is as below:
  • If the file size of TIFF is >15MB first it is converted to PDF file using ITEXT and then further pdf is processed using GhostScript/Recostar and resulting TIFF file is processed using ImageMagick whereas,
  • If file size of TIFF <15MB it is processed directly using ImageMagick.
  • ITEXT is unable to process tiff file with compression type JPEG/JPEG-2000.

Was this article helpful to you?

Abhishek Jain