Hi, Zxing (https://code.google.com/p/zxing/) allows you to read and write barcodes. Here is a simple example of a barcode writer using zxing. I hope this can help. public static BufferedImage generateBarcode(String text, int widthInPixels, int heightInPixels, BarcodeFormat barcodeType) { BitMatrix bitMatrix; Writer writer; switch (barcodeType) { case CODE_39: writer = new Code39Writer(); break; case CODE_128: writer = new Code128Writer(); break; case QR_CODE: writer = new QRCodeWriter(); break; default: throw new RuntimeException("Unknown type or not supported."); } try { bitMatrix = writer.encode(text, barcodeType, widthInPixels, heightInPixels, null); } catch (WriterException e) { throw new RuntimeException("Error during bacode generation", e); } BufferedImage barcodeImage = MatrixToImageWriter.toBufferedImage(bitMatrix); return barcodeImage;} Martin > Subject: Re: Barcode example > From: rgur...@smarthealth.com > Date: Mon, 13 May 2013 10:46:27 -0700 > To: jbea...@gmail.com > CC: webobjects-dev@lists.apple.com > > You need to specify the type of barcode you plan on using. > > On May 12, 2013, at 11:19 PM, Jake Bearkley wrote: > > > > > Hi All > > > > Does anyone have any code snippets or examples to show a barcode being > > generated and printed > > > > And then a barcode reader used to input into their application? > > > > Thanks in advance > > Bearko > > _______________________________________________ > > Do not post admin requests to the list. They will be ignored. > > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > > Help/Unsubscribe/Update your Subscription: > > https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com > > > > This email sent to rgur...@smarthealth.com > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/syrinx2002%40msn.com > > This email sent to syrinx2...@msn.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com