How to create QRcode image using normal j2se. Any APIs or classes are available to do this?
To do this you need to download following jars,
from http://code.google.com/p/zxing/
try the following code
ByteArrayOutputStream out = QRCode.from("Hello World").to(ImageType.PNG).stream();
try {
FileOutputStream fout = new FileOutputStream(new File("C:\\QR_Code.JPG"));
fout.write(out.toByteArray());
fout.flush();
fout.close();
} catch (FileNotFoundException e) {
// Do Logging
} catch (IOException e) {
// Do Logging
}
Hope this helps