Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

qr code generator in java

public static BufferedImage generateQRCodeImage(String barcodeText) throws Exception {
    QRCodeWriter barcodeWriter = new QRCodeWriter();
    BitMatrix bitMatrix = 
      barcodeWriter.encode(barcodeText, BarcodeFormat.QR_CODE, 200, 200);

    return MatrixToImageWriter.toBufferedImage(bitMatrix);
}
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #qr #code #generator #java
ADD COMMENT
Topic
Name
9+9 =