Open bindreams opened 1 year ago
Soon after posting I also discovered that the code above works on 7.3.1, but not on any 7.4.* version.
i am having same problem with 7.4.* its working with the strings but not with bytes
Maybe you can encode your data to base64 before add_data
. It works in my scripts.
OP here. For anyone encountering the problem, I eventually created my own QR encoder (also supports other barcodes). It's based on a very established C library and has very good support for any kind of data (binary included).
I found a solution for myself: When using qr.make, I explicitly specify the fit=False parameter. (qr.make(fit=False))
I'm encoding a binary image file using a QR code. In the example below I'm creating a QR code version 20 with error correction H, which should allow me to pass 382 bytes in. After calling make I'm getting an error:
Can you please help me out?