html5-qrcode icon indicating copy to clipboard operation
html5-qrcode copied to clipboard

Problems scanning QR code with JSON

Open smout74 opened this issue 3 years ago • 1 comments

Hi, When trying to scan a QR code which contains a JSON string I get an error. Even the scanapp.org shows an error when loading an image with the QR code directly. (error: No MultiFormat Readers were able to detect the code) Can this be solved ?

Thanks

Example QR attached:

QRsettings-L

smout74 avatar Mar 15 '22 09:03 smout74

I am able to scan JSON just fine using this library. Perhaps the payload is too large for a QR code? They can handle a fair amount, but you can see the complexity of the example you posted.. 😅 I limit the amount of data that can go in to the code, and even shorten the field names to 1 or 2 characters. If additional data is required, I store it in the DB and pass a record ID through the code to be used on the other side.

parker-codes avatar Sep 06 '23 17:09 parker-codes