Whats the suitable data type for the qr code in mysql? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Whats the suitable data type for the qr code in mysql?

Am trying to feed the qr image with data so that when it is displayed and scanned all the inserted data should be displayed.

16th Feb 2020, 8:03 AM
Sekela Mututa
Sekela Mututa - avatar
3 Answers
+ 7
Sekela Mututa We never store qr code image in database. There is some features by which we can create qr code like we can use node js framework to make qr code. Check here how to generate QR Code. http://thecodebarbarian.com/creating-qr-codes-with-node-js.html
16th Feb 2020, 8:30 AM
A͢J
A͢J - avatar
+ 4
If you want to store the qr code as image, you can use the BLOB type (binary large object). If you want to store the actual meaning encoded in the image, then you may need multiple columns, as the content could be quite complex, a serial number, an url address, even a hierarchical structure of objects (like vCard).
16th Feb 2020, 8:31 AM
Tibor Santa
Tibor Santa - avatar
+ 1
Thank you so much, I really appreciate.
16th Feb 2020, 9:56 PM
Sekela Mututa
Sekela Mututa - avatar