I am trying to read a chunk of Base64 encoded data with QRCodeReader().decode(binaryBitmap, hintMap);
Everything works until the QRCode has == double equals characters (Base64 padding).
Example: ZG9kb2RvCg==
If the offending characters are encountered I get NotFoundException. I have tried various combinations of CHARACTER_SET in hints but so far no success.
hintMap.put(DecodeHintType.CHARACTER_SET, CharacterSetECI.UTF8);
hintMap.put(DecodeHintType.TRY_HARDER, true);
Screenshot of the QRCode is attached. Any solution or workaround is appreciated.
Adding the pure barcode hint decodes it.
hintMap.put(DecodeHintType.PURE_BARCODE, Boolean.TRUE);
Regards,
Zorawar
Thank you. For some reason when I increased the version of the QR Code to min:13 to max:21 on the producer side I have seen the issue go away. Perhaps it had to do with the size of data (64 bytes) I was encoding into the QR Code.