java gwt 在服务器上生成二维码
我需要开发将二维码(或二维码链接)返回给移动客户端的网络应用程序。我计划学习 GWT 的基础知识,因为我已经了解 java 编程。 是否可以将 zxing 库或其他一些 Java 库与 GWT 一起使用,以便通过几行代码即可生成(编码)QR 码?或者您建议其他选择吗?
服务器返回的二维码将取决于手机请求附带的 ID。
总氮
I need to develop web app that will return qr code(or link to qr code) to mobile clients. I plan to learn the basics of GWT because i alredy know java programming.
Is it possible to use zxing libraries or some other java libraries with GWT, so generating (encoding) QR codes could be done with a few lines of code? Or do you suggest any other option?
The QR code that will be returned by server will depend on ID that will come with the request from mobile phone.
Tnx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 zxing 等库在服务器内生成 QR 码是一种非常明显的方法,并且绝对适合您的应用程序。
但您也可以考虑将其卸载到外部网络服务,例如 Google 图表 。请参阅此处。如果这种方法适合您,它的优点是您可以将服务资源和带宽从责任中解放出来,因此它可能会更好地扩展并且开发起来更简单。
当然,需要注意的是您的应用程序必须满足提供商的使用条款
Generating the QR code in-server using a library such as zxing is a pretty obvious way to go about this an could be absolutely appropriate for your application.
But you might also consider off-loading this to an external web-service such as Google Charts. See here. The advantage of this approach, if it works for you, is that you free your service resources and bandwidth from the responsibility so it would likely scale better and be less complex to develop.
The caveat is, of course, is that your application would have to satisfy the provider's terms of use