Twain Web应用程序示例代码 [英] twain web application sample code

查看:81
本文介绍了Twain Web应用程序示例代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
您好我正在寻找twain Web应用程序的示例代码

此获胜示例代码

http://www.codeproject.com/Articles/1376/NET-TWAIN-image-scanner

我想要这个网络API

hello
hello I am looking for sample code twain web application

this win sample code

http://www.codeproject.com/Articles/1376/NET-TWAIN-image-scanner

I want this web api

http://www.codeproject.com/Articles/10518/NET-Web-Twain

javascript:window.open('file:///C://TZTwain/TZTwain.exe',1); security problems..

and I do not want to use 3rd party libraries


感谢

推荐答案

问题是Web浏览器没有并且不应该有权访问您要执行的任务所需的驱动程序完全的.如果我去了一个网站并开始使用我的扫描仪,我会很生气.

可能会有第三方Active X/Java Applet可以做到这一点,但是您不太可能在使用.Net的浏览器中实现这种功能.

就像您是.Net开发人员一样,我建议您创建Windows应用程序进行扫描.在TWAIN示例之后,您已经显示了,但是使用了ClickOnce 部署,因此可以从您的网站启动它.

然后修改您的扫描应用程序,以通过Web服务将扫描的图像上传到Web服务器.
The problem is that the web browser doesn''t and shouldn''t have permission to access the drivers required for the task you''re trying to complete. I''d be annoyed if I went to a website and it started using my scanner.

There may be 3rd party Active X / Java Applets which would do it, but you''re unlikely to achieve a such a thing in the browser with .Net.

As you seem to be a .Net developer I''d suggest creating a Windows application to do the scanning. Following the TWAIN example you''ve shown but use a ClickOnce deployment so it can be launched from your website.

Then modify your scanning application to upload the scanned image, via a web service, to your web server.


这篇关于Twain Web应用程序示例代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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