如何在asp.net中扫描图像 [英] How to scan a image in asp.net

查看:114
本文介绍了如何在asp.net中扫描图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在我的Web应用程序(asp.net)中扫描一批图像.当我单击应用程序中的扫描"按钮时,它应该直接开始扫描而不将其直接定向到扫描仪的扫描界面.一个知道如何通过浏览器执行此操作的方法.我的看法.

有两种解决方案,但是它们是不安全的,仅使用Windows计算机就依赖于您的客户端.

1.您可以使用ActiveX控件-但这不适用于所有浏览器.
2.您不能直接从客户端的ASP.NET使用Windows Image Acquisition库,因为代码将在服务器上运行.


就像Prasad写道,Web浏览器不会支持采集(扫描)功能.这意味着要在客户端进行扫描,客户端计算机必须安装可以从Web应用程序访问的组件(例如ActiveX).
这是使用Twain扫描库执行此操作的一种方法的示例:
http://support.leadtools.com/CS/forums/18445/ShowPost.aspx


i have to scan a batch of images in my web app(asp.net).when i click the scan button in my app it should start scanning directly without directing it to the scanner''s scanning interface.so does any one know how to do this through the browser.

解决方案

There''s no generic method for web browser applications to access scanners, and it is not a scalable option in my opinion.

There are a couple of solutions, but they are unsecure, and rely on your clients only using Windows machines.

1. You can use ActiveX control - But that won''t work in all browsers.
2. You can''t use Windows Image Acquisition library directly from ASP.NET on the client side, since the code would run at the server.


Like Prasad wrote, web browsers do not support acquisition (scanning) features. This means to scan at the client side, the client machine must have components installed (such as ActiveX) that can be accessed from a web application.
Here''s an example of one way to do it using a Twain scanning library:
http://support.leadtools.com/CS/forums/18445/ShowPost.aspx


这篇关于如何在asp.net中扫描图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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