We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
仅使用浏览器和 JavaScript 是无法做到这一点的,完全停止,您需要包含其他东西 - Java 小程序、.Net“无接触部署”应用程序(主要仅适用于 IE)、Flash 或 Shockwave应用程序,类似的东西。在Windows世界中,Flash在浏览器上拥有庞大的安装基础,但我不知道它是否可以做你想要的事情(对Flash了解不多)。接下来是签名的 Java 小程序。
然后,用户需要授予您的事物访问本地资源的权限,该过程根据所使用的技术而有所不同。对于使用签名的 Java 小程序来说,这是一个相当简单的过程,对于使用 .Net“无接触部署”应用程序的最终用户来说,这个过程更加复杂且尴尬。
You can't do it with just a browser and JavaScript, full stop, you'll need to include something else -- a Java applet, a .Net "No Touch Deployment" application (mostly IE-only), a Flash or Shockwave application, something like that. In the Windows world, Flash has a huge installed base on browsers, but I don't know if it can do what you want (not knowing much about Flash). Next up would be a signed Java applet.
The user will then need to give your thingy permission to access local resources, a process that varies depending on the technology used. It's quite a simple process with a signed Java applet, much more involved and awkward for the end user with a .Net "No Touch Deployment" app.
我已经看到使用 Java applet 成功完成了此操作。 ActiveX 也可能有效。
这里似乎是一个正在运行的 TWAIN 小程序。
这里是与 TWAIN 和 Java 相关的问题及其答案。
I've seen this done with a Java applet successfully. ActiveX might also work.
Here is what appears to be a working TWAIN applet.
Here is question with answers related to TWAIN and Java.
我已成功使用 Morena 实施网络扫描。它只要求用户安装 Java。 (使用旧版本的 Java,处理扫描图像时可能会耗尽内存。我必须将大图像切成 100 像素条,然后将它们单独发送到服务器。)
这是一个小的 扫描到电子邮件项目,我使用 Morena。
I've successfully used Morena for implementing web scanning. It requires only that the user have Java installed. (With older versions of Java you can run out of memory when processing the scanned image. I had to cut large images into 100 pixel strips and send them individually to the server.)
Here's a small scan-to-email project that I used Morena with.