java - Convert BitMatrix output from QRCodeWriter to byte array? -
i have api frontend (php) calls generate qr code. qr code sent byte array (byte[]
). we're using paid library can render qr code outputstream
, bytearrayoutputstream
. library doesn't support utf-8 characters causing problem us. going through qr code generation process zxing we've noticed character set can specified in hashtable before encoding containing qr code.
we change existing functionality little possible. hence wondering if possible convert bitmatrix output qrcodewriter.encode
method byte array?
you can find sample code of reading , converting bitmatrix looking @ class com.google.zxing.client.j2se.matrixtoimagewriter
(file on github)
Comments
Post a Comment