We have been using Aspose.Barcode java library to read barcodes in a document. However, on certain files, the component goes OOM. In my case, the document was ~3MB and the JVM was 4GB. Can you please assist.
Tried with the below versions and both have the same issue-
aspose-barcode-17.8.jar
aspose-barcode-16.12.jar
I do not see an option to attach files here. Let me know how can I provide you with the sample code and test document.
We have evaluated the sample provided by you. We are unable able to reproduce the issue. Please verify that you have shared the correct input file because the file shared by you is of 760KB whereas you had mentioned it is 3MB. In case the uploaded file is not the correct one then please zip the file and share it again.
We have evaluated the sample TIFF image. Initial investigation shows that the issue persists. The issue has been logged into our system with ID BARCODEJAVA-385 for further investigation. We’ll update you here once there is some information or a fix version available in this regard.
The issue is currently in the queue for further investigation. However we have asked our product team provide feedback on this issue. We will update you in this forum thread as soon as any update or information is available.
This is to update you that our product team is working on this issue. The tentative time for the fix to be available is in our monthly release next month. As soon as the fix will be available, you will be updated in this forum thread.
The Aspose.BarCode for Java 17.11 will be released soon but no specific date has been announced. The resolution of this issue depends on an other issue and our product team is working on fixing that issue.
This is to update you that our product team is working on this issue. We are facing some buffer overflow issues while fixing this. As soon as it is fixed, we will update you here in this forum thread. We are sorry for the inconvenience.
You may use the following code snippet to read the barcode.
CODE:
com.aspose.barcode.barcoderecognition.BarCodeReader reader = new com.aspose.barcode.barcoderecognition.BarCodeReader("problematic_file.tiff");
// You may also use the following line of code
// com.aspose.barcode.barcoderecognition.BarCodeReader reader =
new com.aspose.barcode.barcoderecognition.BarCodeReader("problematic_file.tiff", com.aspose.barcode.barcoderecognition.DecodeType.PDF_417);
int iCount = 0;
while (reader.read())
{
System.out.println(" codetext: " + reader.getCodeText());
iCount = iCount + 1;
}
System.out.println("Total barcode found : " + iCount);