Barcode Readig from TIFF Images

Hi ,

Need to read BarCodes from TIFF image files , looks like we have direct processing methods for PDF and Word files. Can you please help us with reading the TIFF files?

Hi Arun,

Thank you for considering Aspose.

In order to work with Tiff image format, you need to use JAI library in collaboration with Aspose.BarCode for Java. Please check the below linked technical article for your reference,

In case you have further question, please feel free to write back.

Hi Babar,

Thanks for the Assistance !

Did try the post earlier , the issue was with the below line:

readers = javax.imageio.ImageIO.getImageReadersBySuffix("tiff");

There were no readers for suffix tiff.(but there are readers available for bmp, png etc) Did have the following jars downloaded and added them to build path of project. Please let me know if we need to have any other jars.

jai_codec-1.1.3-alpha.jar

jai_core.jar

jai_imageio.jar


Hi Arun,


Thank you for your response.

I have attached my sample project along with required Jars (list provided below) and a sample Tiff image. You can easily import this project in Eclipse.

  1. aspose-barcode-4.5-jdk15.jar
  2. jai_codec.jar
  3. jai_core.jar
  4. jai_imageio.jar

Please test the application and feed us back with your results.

Hi Babar,

Thanks for sharing hte project .

Did try with the new project and with new set of jars , looks like still the same issue.

readers = javax.imageio.ImageIO.getImageReadersBySuffix("tiff");

There were no readers for suffix tiff.(but there are readers available for bmp, png etc) .

So basically it is not able to get any readers for "tiff" files but it s able to get readers for other formats like bmp,png,jpeg files etc.

Can you please help us on this?

Regards,

Vetri.

Hi Verti,


I’m sorry for your trouble.

The said behaviour is strange for me cause the same project is working fine on my end. Could you please check the JRE version? The sample project is using J2SE-1.5.

Also please state, have you imported the project in your workspace or you just used the code and libraries from the sample project in one of your own projects.

Looking froward to your kind response.

Regards,

Hi Babar,

Thanks for your assistance.. we have it working fine right now.

Also i came up with another issue when using the Aspose jars along with log4j. Was getting an exception like:

Exception in thread "main" java.lang.NoClassDefFoundError: org/testng/Assert

But the issue was sorted out by using another jar testng-4.4.7-jdk15.jar . I went through some other posts in Aspose came to know that this was an issue and fix packs were released later.

So just wanted to know if the above is a trusted solution or there was any fix pack or any other jars were released to overcome the above issue when using Aspose with Log4j.

Regards,

Vetri.

Hi Verti,


Thank you for your response. Its good to know that you are up and running again.

Regarding the ClassNotFoundException, this problem was reported earlier and got fixed with Aspose.BarCode for Java v4.4.0. So, you should not be experiencing the same problem with latest Jars as well.

To investigate this anomaly, could you please share a sample project along with referenced libraries for our reference? We will soon look into this matter and provide the fix if applicable.

Best Regards,