Sometimes unreadable Code93Standard barcode

Hello,


i am using AsposeBarcode For Java (Version 7.4.0).
Sometimes the generated barcodeimage ist not readable.
For example the value 15-11-48-02-1386 will produce an wrong barcode.
Hint: The checksum is not right. :wink:

Code:
// The path to the documents directory.
String dir = System.getProperty(“java.io.tmpdir”);

// Instantiate barcode object
BarCodeBuilder bb = new BarCodeBuilder();

// Set the Code text for the barcode
bb.setCodeText(“15-11-48-02-1386”); // fail
// bb.setCodeText(“15/11/48/02/1386”); // ok

bb.setSymbologyType(Symbology.Code93Standard);
bb.save(dir + “barcode.png”, BarCodeImageFormat.Png);

regards
Wolfgang Post
Hi Wolfgang,

Thank you for your inquiry and sharing sample with us.

We have performed several tests at our end. We have used the version Aspose.BarCode for Java 7.7.0. We are able to recognize the barcode. It is always recommended to use latest version. Please try the latest version at your end and update us with details in case the issue persists.

Hello,


even with version 7.7.0 the generated barcode is not correct.
The second (correct) barcode is build with an own implementation.

Regards

Hi Wolfgang,

Thank you for writing us back.

We have tried to generate the Code93Standard barcode and then read the same. Following are the code snippets to generate and read the barcode respectively.

Generate Barcode:

// Instantiate barcode object
BarCodeBuilder bb = new BarCodeBuilder();
// Set the Code text for the barcode
bb.setCodeText("15-11-48-02-1386");
bb.setSymbologyType(com.aspose.barcode.Symbology.Code93Standard);
try
{
bb.save("Code93Standard_barcode.png", com.aspose.barcode.BarCodeImageFormat.Png);
}
catch (IOException ex)
{
System.out.println(ex.getMessage());
}

Read Barcode:

BarCodeReader reader = new BarCodeReader("Code93Standard_barcode.png", BarCodeReadType.Code93Standard);
while (reader.read())
{
System.out.println(" codetext: " + reader.getCodeText() + " Code Type: " + reader.getReadType());
}
reader.close();

Furthermore the generated barcode image (PNG) file is attached for your reference.

Hi,


the attached image of the barcode is not readable with laser scanner (TaoTronics TT-BS014) or iphone app (bar-code).

the second checksum may be wrong.

regards
Hi Wolfgang,

Thank you for your inquiry.

We need more information about the issue that you are facing at your end while recognizing barcode.

  • Are you facing issue while generating the Code93Standard coded barcode using Aspose.BarCode?
  • If there is no issue in generating Code93Standard coded barcode using Aspose.BarCode then are you trying to recognize the printed barcode using barcode scanner (TaoTronics TT-BS014)?
  • Or are you trying to recognize the barcode in an image form on the computer?

Hi,


i’m generating the barcode with Aspose.Barcode and trying to read the printed barcode with the laser scanner. But the scanner does not recognize it.

regards
Hi Wolfgang,

This is to update you that we have initiated an investigation on this issue. The issue has been logged into our system with ID BARCODJAVA-34310. Our product will look into it. We will update you accordingly via this forum thread.