We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Barcode decode

public static void main(String[] args) {
com.aspose.barcode.License license = new com.aspose.barcode.License();

license.setLicense(new File("C:\\Users\\luleyong\\Desktop\\Aspose.BarCode.lic"));
BufferedImage img = ImageIO.read(new File("D:/IMG.jpg"));
BarCodeReader reader = new BarCodeReader(img,BarCodeReadType.VIN);
if (reader.read()) {
// Print the code text, if barcode found
System.out.println("CodeText: " + reader.getCodeText().toString());
System.out.println("not find barcode");
}catch(Exception e){
i use barcode api can't decode the follow image.

Hi Lu,

Thank you for reporting us. I’ve tested sample barcode image against the latest build of Aspose.BarCode for Java 5.8.0. I managed to reproduce the problem of recognition failure. I’ve logged this issue under ticket id BARCODJAVA-33442 in our issue tracking system. Your request has also been linked to this issue and you will be notified as soon as it’s fixed. We’re sorry for your inconvenience.

Hi Lu,

Thank you for being patient. In reference of ticket id BARCODENET-33858, our product team has investigated it. It appears as an unkown barcode symbology because the original generated VIN code “LMGFE1356E1017647” is very different from your provided barcode picture. Could you please let us know how you have encoded it? It’ll help us to be more specific.