4 ms·
I get the data structure, but is there some metadata? How does it know the contents are, say, an URL, or a vcard?
by bigtech 15y ago
I get the data structure, but is there some metadata? How does it know the contents are, say, an URL, or a vcard?
- jpulgarin 15y agoJust by the structure of the contents. Clients are supposed to parse the string contents, realize it's a URL, and open the browser for example.
- smackfu 15y agoI think it is just: store bytes and let the reader decide how to deal with them. Starts with "http", it's a URL. Starts with "BEGIN:VCARD", it's a vcard. Primitive but it works well enough I guess.
- abava 15y agoby parsing the string
- anodari 15y agoThis link (http://www.swetake.com/qr/qr2_en.html http://www.swetake.com/qr/qr2_en.html) have a detailed explanation about how data are stored
- PaulGaspardo 15y agoThe best guide to this I've seen is here: http://code.google.com/p/zxing/wiki/BarcodeContents http://code.google.com/p/zxing/wiki/BarcodeContents