The first step of using this Code 93 barcode reader library is to integrate it into your Java program. And the operation is easy to be done. At the very beginning, you are supposed to copy this .jar file to your Java application folder. And then, add it to Java classpath. Just nailed it! Now, you can use the following APIs and Java class demo to read and recognize Code 93 linear barcode information.
Scan Code 93 from Image in Java
This Java Software for Code 93 barcode reading is fully coded in Java and it supports various Java server side environments like JSP, Servlet, J2EE, Web Service and Java applications, such as Swing, Applet, Java Bean, J2SE, and so on. By using advanced Java APIs, you are able to implement fast and accurate Code 93 scanning and reading. Various image sources are supported, which include common raster image formats Png, Gif, Jpeg, Bmp, Tiff, and Java AWT image objects.
You may have already downloaded the free trial package of Java Barcode Scanner SDK online and see a library in it, called pqScan.BarcodeReader.jar. This barcode recognition component can be used to add high performance Code 93 barcode reading features into your Java applications.
In the two groups below, we illustrate all provided APIs for Java Code 93 reading and decoding. These two groups can be used for different barcode scanning purposes. In details, the first group is applied to customize a barcode symbology to be read. And the second is used for all barcode symbologies recognition from loaded image file.
APIs for Scanning Single Barcode Symbology Code 93
// APIs for scanning Code 93 1D barcode from local image file in Java. public static BarcodeResult[] Scan(String filename, BarCodeType barType); // APIs for scanning Code 93 1D barcode from BufferedImage object in Java. public static BarcodeResult[] Scan(BufferedImage image, BarCodeType barType); // APIs for scanning Code 93 1D barcode from InputStream object in Java. public static BarcodeResult[] Scan(InputStream imageStream, BarCodeType barType);
APIs for Scanning All Barcode Symbologies
// APIs for scanning all barcode symbologies from local image file in Java. public static BarcodeResult[] Scan(String filename); // APIs for scanning all barcode symbologies from BufferedImage object in Java. public static BarcodeResult[] Scan(BufferedImage image); // APIs for scanning all barcode symbologies from InputStream object in Java. public static BarcodeResult[] Scan(InputStream imageStream);
This part provides a free Java class demo for reading Code 93 1D barcode. You may copy to have a quick test. If you have any question of using our Barcode Scanner Software for Java, please send email to support@pqscan.com. We're pleased to help you with your application.
import com.pqscan.barcodereader.BarcodeResult; import com.pqscan.barcodereader.BarcodeScanner; import com.pqscan.barcodereader.BarCodeType; public class ReadCode93Demo { public static void main(String[] args) { try { // Decode Code 93 from local image source. BarcodeResult[] results = BarcodeScanner.Scan("C:/sample.jpg", BarCodeType.Code93); for(int i = 0; i < results.length; i++) { // Output and show Code 93 decoded information. System.out.println(results[i].getData() + "--" + results[i].getBarType()); } } catch (Exception e) { e.printStackTrace(); } } }