Thank you for contacting Aspose Support.
For generating barcode, you may use the following code sample:
BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.CODE_128, "123456789");
generator.save("D:\\Aspose\\" + "test.png");
The above code sample shall generate barcode and save it as PNG image. For reading barcode, you may use the following code sample:
BarCodeReader rd = new BarCodeReader("D:\\Aspose\\" + "test.png");
// read barcode of type Code39Extended
// print the code text, if barcode found
System.out.println("CodeText: " + rd.getCodeText().toString());
// print the symbology type
System.out.println("Symbology type: " + rd.getCodeType());
The input folder represents current working directory where the resulting image shall be saved or from where the application shall read the barcode image. As in above provided code sample, “D:\Aspose\” is the working directory.
Moreover, you may get detailed documentation regarding various features of our API at this link:
Furthermore, please free to write back to us if you need additional information.