Generate QuickResponseCode(QRC) in Java

1.Get the zxing  api from here zxing
2.Add the jar file to your project
3.import net.glxn.qrgen.QRCode;
3.import net.glxn.qrgen.image.ImageType;

//The Source Code that produces the qrc image

 ByteArrayOutputStream out=QRCode.from(s).to(ImageType.JPG).stream();
  FileOutputStream fl = new FileOutputStream(new File("code.png"));
  fl.write(out.toByteArray());
  fl.flush();
 fl.close();






Comments

Popular Posts