将QR代码传送到MySql数据库中 [英] Tranfer QR Code Into a MySql Database

查看:124
本文介绍了将QR代码传送到MySql数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试找出将扫描的QR文本文件放入MySql数据库中最简单的方法.我将要执行的应用程序是使用移动设备扫描QR码,然后将扫描的图像保存到文件中,然后将其添加到MySql驱动的数据库中.是否有一个应用程序可以为我开展此类项目打下基础?任何指导都将受到高度赞赏!

I've been trying to figure out what's the easiest way of putting a scanned QR text file into a MySql Databse. What I would the application to do is scan the QR code with a mobile device and then save the scanned image into a file that would then be added into a MySql Driven Database. Is there an app that would give me the groundwork for this kind of project? Any guidance is highly appreciated!

推荐答案

最简单的方法是使用

The simplest way is to use ZXing app. It it is installed just open the flowing url:

http://zxing.appspot.com/scan?ret=http%3A%2F%2Fexample.com%2Fproducts%2F%7BCODE%7D%2Fdescription&SCAN_FORMATS=QR_CODE

此URL将打开页面 http://example.com/procucts/,然后打开扫描的QR代码内容.参数SCAN_FORMATS将避免接受正常的一维条形码.

This url will open the page http://example.com/procucts/ followed by the scanned QR code content. The paremeter SCAN_FORMATS will avoid that normal 1D barcodes will be accepted.

另请参见 ZXing文档的完整说明.请注意,如果未安装ZXing应用,则用户只会看到正常的网页.

See also the full explanation on the ZXing documentation. Please note that the user will just see a normal webpage if the ZXing app is not installed.

这篇关于将QR代码传送到MySql数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆