|
Java Barcode Generator > Java Barcode Generation Guide > Java EAN-128/GS1-128 Generator Java EAN-128/GS1-128 GeneratorCreate Barcode EAN-128/GS1-128 in Java Class, Servlet, Jasper Reports, iReport & BIRT
GS1-128 is an application standard of the GS1 implementation using the Code 128 barcode specification. The former correct name was UCC/EAN-128. Other no longer used names have included UCC-128 and EAN-128. GS1-128 uses a series of Application Identifiers to include additional data such as best before dates, batch numbers, quantities, weights and many other attributes needed by the user.
The GS1-128 barcode above encodes a production date as Jan 01, 2009 Java EAN-128 / GS1-128 Barcode Generator - Common Questions1. How to generate EAN-128 / GS1-128 barcodes in JSP & HTML pages?
2. How to create EAN-128 / GS1-128 barcodes in Java Servlet?
try {
Barcode barcode = new Barcode();
barcode.setSymbology(Barcode.EAN128);
barcode.setCode("(11)090101");
response.setContentType("image/jpeg");
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
ServletOutputStream servletoutputstream = response.getOutputStream();
barcode.drawOnStream(servletoutputstream);
} catch (Exception e) {
throw new ServletException(e);
}
3. How to encode Application Identifier (AI) to compatible with GS1 128 in Java Class?You need put parentheses around AIs. View the details in the following Java code:
Barcode barcode = new Barcode();
barcode.setSymbology(Barcode.EAN128);
// The first AI 11 means production date is Jan 01, 2009
// The second AI 13 means packaging date is Feb 01, 2009
barcode.setCode("(11)090101(13)090201");
barcode.drawImage2File("C://ean128.gif");
4. How to generate EAN-128 / GS1-128 barcodes in Java Class?
Barcode barcode = new Barcode();
barcode.setSymbology(Barcode.EAN128);
barcode.setCode("(11)090101");
barcode.drawImage2File("C://ean128.gif");
5. How to draw EAN-128 / GS1-128 barcodes to image files?
Barcode barcode = new Barcode();
barcode.setSymbology(Barcode.EAN128);
barcode.setCode("(11)090101");
barcode.drawImage2File("C://ean128.gif");
6. How to draw & print EAN-128 / GS1-128 barcodes to Java image objects or stream objects?
Barcode barcode = new Barcode();
barcode.setSymbology(Barcode.EAN128);
barcode.setCode("(11)090101");
barcode.drawOnGraphics("Graphics2D object");
barcode.drawOnStream("OutputStream object");
Java Barcode EAN-128 / GS1-128 Generator - Barcode Property SettingsBasic
Java Barcode Generator Supporting Barcode Symbology Types
|
| ALL RIGHTS RESERVED. Business Refinery (c) 2006 - 2010. | C#.NET QR Code, Code 128 Java, QRCode Java, QR Code C#.NET, Code 39 Java |