简体   繁体   English

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

[英]How much data / information can we save / store in a QR code?

I would like to use this script https://github.com/jeromeetienne/jquery-qrcode我想使用这个脚本https://github.com/jeromeetienne/jquery-qrcode
(or is there even a better solution?) (或者有更好的解决方案吗?)

What I like to do is "save" some small scripts or programs and even files like xml formatted files (svg, x3d, ...) as QR code images.我喜欢做的是将一些小脚本或程序,甚至像 xml 格式的文件(svg、x3d、...)之类的文件“保存”为二维码图像。

But how much information (in bytes) can I save exactly to QR code images (using this javascript solution)?但是我可以将多少信息(以字节为单位)准确保存到 QR 码图像(使用此 javascript 解决方案)?

Any experience with this script and using qr codes for files?有使用此脚本和使用文件二维码的经验吗?
https://github.com/jeromeetienne/jquery-qrcode https://github.com/jeromeetienne/jquery-qrcode

QR codes have three parameters: Datatype, size (number of 'pixels') and error correction level. QR 码具有三个参数:数据类型、大小(“像素”数量)和纠错级别。 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 7,089 个字符
Alphanumeric Max.字母数字最大值4,296 characters 4,296 个字符
Binary/byte Max.二进制/字节最大值2,953 characters (8-bit bytes) 2,953 个字符(8 位字节)

See this table .请参阅此表

A 101x101 QR code, with high level error correction, can hold 3248 bits, or 406 bytes.具有高级纠错功能的 101x101 QR 码可以容纳 3248 位或 406 字节。 Probably not enough for any meaningful SVG/XML data.对于任何有意义的 SVG/XML 数据,可能都不够。

A 177x177 grid, depending on desired level of error correction, can store between 1273 and 2953 bytes.根据所需的纠错级别,一个 177x177 的网格可以存储 1273 到 2953 个字节。 Maybe enough to store something small.也许足以存储一些小东西。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM