skip to main | skip to sidebar

Java Programs and Examples with Output

Pages

▼
 
  • RSS
  • Twitter
Friday, September 14, 2012

Barcodes Encoding Decoding Java Example

Posted by Admin at 12:40 PM – 0 comments
 

General Overview of BarCodes and using them to encode and decode


BitMatrix bitMatrix = null;// initialize
bitMatrix = new PDF417Writer().encode("Content",BarcodeFormat.PDF_417 , true, 440, 48, 10, 100, 10, 100, Compaction.TEXT); // initialize PDF
MatrixToImageWriter.writeToStream(bitMatrix, "png", new FileOutputStream(new File("//pdf8.png"))); //convert to stream
DecoderResult decode = new Decoder().decode(bitMatrix);

Leave a Reply

Newer Post Older Post
Subscribe to: Post Comments ( Atom )
  • Popular
  • Recent
  • Archives
Powered by Blogger.
 
 
 
© 2011 Java Programs and Examples with Output | Designs by Web2feel & Fab Themes

Bloggerized by DheTemplate.com - Main Blogger