Java Barcode EAN 8 Scanner Introduction
Scanning and reading barcode EAN 8 from image file is a key feature in OnBarcode
Java Barcode Reader SDK.
Java Barcode Reader is completely developed in Java SDK 1.4.2, and you can easy integrate the barcode reading feature in your Java project without any registration key, activation code.
Related barcode scanner library API
Scan Codabar in Java - Scan, Read Codabar using Java.
Scan QRCode in Java - Scan, Read QRCode barcode images using Java.
Scan UPC-A in Java - Scan, decode UPC-A using Java.
Scan ISSN in Java - Scan, decode ISSN using Java.
Install Java Barcode Reader to your Java project
- Copy BarcodeReader.jar to your Java project library folder.
- Add BarcodeReader.jar to your Java classpath.
Reading & Scanning EAN 8 Barcodes in Java class
- tell BarcodeReader class where is the image file.
- here is the sample code:
- String[] datas = BarcodeReader.read(new File("C:/EAN8-Barcode-Image.gif"), BarcodeReader.EAN8);
- Pass your EAN 8 barcode image file, and barcode type to BarcodeReader, and it will return all EAN 8 barcode data in the image file.
Besides image file, you can also pass java.awt.Image or java.awt.image.RenderedImage object to the read method. - here is the sample code:
