您很可能不会将 QR 码图像本身存储在数据库中。相反,您可以存储条形码中包含的 URL 或其他文本,以便在扫描条形码时查找必要的信息或在需要时重新生成条形码。
The QR Code is a type of two-dimensional barcode that is used to store small amounts of text or data (see Wikipedia). Different sizes and error correction levels of QR barcodes exist to store differing amounts of data with a selectable amount of redundancy.
The implementations in today's mobile phone platforms such as Android can use the contents of a QR code as a URL to open in the phone's Web browser. (Apple iPhones are supposed to be able to read QR codes using the free Semacode software.) Therefore, you can track usage of these barcodes using such tools as web site log analyzers.
Other data formats usable by mobile phones include vCard, which is used to store a person's contact information (see Wikipedia). Unlike URLs, usage of these cannot easily be tracked (i.e. if the user dials the phone number rather than opening a URL embedded inside). Although bare URLs are commonly used with QR code, vCard does have a URL field.
If you want to generate QR codes from your web site, you can use Google Charts (as Adam Straughan says), or you can use one of the many libraries that exist for popular programming languages (for example, http://phpqrcode.sourceforge.net/ for PHP, or http://code.google.com/p/zxing/ for Java) if you wish to do so on your own server. You would have to supply a valid URL or vCard as the text to encode in order for the QR code to be scannable by a mobile phone. Industrial applications differ in what is encoded.
Most likely, you would not store the QR code images themselves in the database. Instead, you would store the URL or other text contained within the barcode so that you can look up necessary information when the barcode is scanned or regenerate the barcode if needed.
QR 码是一个编码的文本,文本可以是可识别的格式(通过阅读器应用程序(通常在您的手机或类似设备上),然后可以将其视为 url、vCard、地图位置等。QR 代码不会被跟踪,您是否正在考虑 RFID?
您不太可能存储二维码。有一个 Google 图表 api 来生成图像,我确信您可以购买服务器端小部件您自己的或使用 xzing 库(如果您满意的话)。
A QR code is an encoded piece of text, the text can be of a recognised format (by the reader application, normally on your phone or similar device) and can then be treated as a url, vCard, map location, etc. QR codes are not tracked, are you thinking of RFID?
It is very unlikely that you would store the QR code. There is a Google chart api to generate the images and I'm sure you can purchase a server side widget of your own or use the xzing library if that floats your boat.
发布评论
评论(4)
QR 码是一种二维条形码,用于存储少量文本或数据(参见维基百科)。存在不同大小和纠错级别的 QR 条形码,用于存储不同数量的数据以及可选择的冗余量。
当今的手机平台(例如 Android)中的实现可以使用 QR 码的内容作为 URL 在手机的 Web 浏览器中打开。 (Apple iPhone 应该能够使用免费的 Semacode 软件读取 QR 码。)因此,您可以使用网站日志分析器等工具跟踪这些条形码的使用情况。
手机可用的其他数据格式包括 vCard,它用于存储个人的联系信息(请参阅维基百科)。与 URL 不同,这些的使用情况无法轻易跟踪(即,如果用户拨打电话号码而不是打开嵌入其中的 URL)。虽然裸 URL 通常与 QR 码一起使用,但 vCard 确实有一个 URL 字段。
如果您想从您的网站生成 QR 代码,您可以使用 Google Charts(正如 Adam Straughan 所说),或者您可以使用流行编程语言现有的众多库之一(例如,http://phpqrcode.sourceforge.net/(适用于 PHP),或 http://code.google.com/p/zxing/(适用于 Java))(如果您希望在自己的服务器上执行此操作)。您必须提供有效的 URL 或 vCard 作为要编码的文本,以便手机可以扫描 QR 码。工业应用的不同之处在于编码的内容。
您很可能不会将 QR 码图像本身存储在数据库中。相反,您可以存储条形码中包含的 URL 或其他文本,以便在扫描条形码时查找必要的信息或在需要时重新生成条形码。
The QR Code is a type of two-dimensional barcode that is used to store small amounts of text or data (see Wikipedia). Different sizes and error correction levels of QR barcodes exist to store differing amounts of data with a selectable amount of redundancy.
The implementations in today's mobile phone platforms such as Android can use the contents of a QR code as a URL to open in the phone's Web browser. (Apple iPhones are supposed to be able to read QR codes using the free Semacode software.) Therefore, you can track usage of these barcodes using such tools as web site log analyzers.
Other data formats usable by mobile phones include vCard, which is used to store a person's contact information (see Wikipedia). Unlike URLs, usage of these cannot easily be tracked (i.e. if the user dials the phone number rather than opening a URL embedded inside). Although bare URLs are commonly used with QR code, vCard does have a URL field.
If you want to generate QR codes from your web site, you can use Google Charts (as Adam Straughan says), or you can use one of the many libraries that exist for popular programming languages (for example, http://phpqrcode.sourceforge.net/ for PHP, or http://code.google.com/p/zxing/ for Java) if you wish to do so on your own server. You would have to supply a valid URL or vCard as the text to encode in order for the QR code to be scannable by a mobile phone. Industrial applications differ in what is encoded.
Most likely, you would not store the QR code images themselves in the database. Instead, you would store the URL or other text contained within the barcode so that you can look up necessary information when the barcode is scanned or regenerate the barcode if needed.
我可以推荐这个: http://www.thonky.com/qr-code-tutorial/ 。非常详细,但只涵盖了某种类型的二维码。
I can recommend this one: http://www.thonky.com/qr-code-tutorial/. Very detailed, but only covers a certain type of QR-Code.
QR 码是一个编码的文本,文本可以是可识别的格式(通过阅读器应用程序(通常在您的手机或类似设备上),然后可以将其视为 url、vCard、地图位置等。QR 代码不会被跟踪,您是否正在考虑 RFID?
您不太可能存储二维码。有一个 Google 图表 api 来生成图像,我确信您可以购买服务器端小部件您自己的或使用 xzing 库(如果您满意的话)。
A QR code is an encoded piece of text, the text can be of a recognised format (by the reader application, normally on your phone or similar device) and can then be treated as a url, vCard, map location, etc. QR codes are not tracked, are you thinking of RFID?
It is very unlikely that you would store the QR code. There is a Google chart api to generate the images and I'm sure you can purchase a server side widget of your own or use the xzing library if that floats your boat.