我们可以在一个二维码中保存/存储多少数据/信息?

我想使用这个脚本 https://github.com/jeromeetienne/jquery-qrcode
(或者还有更好的解决办法吗?)

我喜欢做的是“保存”一些小脚本或程序,甚至像 xml 格式的文件(svg,x3d,...)作为二维码图像。

但是有多少信息(以字节为单位)可以保存到二维码图像(使用这个 javascript 解决方案) ?

有使用这个脚本和文件的 qr 代码的经验吗?
Https://github.com/jeromeetienne/jquery-qrcode

160578 次浏览

See this table.

A 101x101 QR code, with high level error correction, can hold 3248 bits, or 406 bytes. Probably not enough for any meaningful SVG/XML data.

A 177x177 grid, depending on desired level of error correction, can store between 1273 and 2953 bytes. Maybe enough to store something small.

enter image description here

QR codes have three parameters: Datatype, size (number of 'pixels') and error correction level. How much information can be stored there also depends on these parameters. For example the lower the error correction level, the more information that can be stored, but the harder the code is to recognize for readers.

The maximum size and the lowest error correction give the following values:
Numeric only Max. 7,089 characters
Alphanumeric Max. 4,296 characters
Binary/byte Max. 2,953 characters (8-bit bytes)