Document Scanning from ASP.net Web Application

跟風遠走 提交于 2019-12-10 16:23:59

问题


I have a ASP.Net C# 4.0 Web Application

I need to Add a scanning feature for my users. This is what I want to achieve On my web application

  1. user clicks on a button
  2. opens a window with preview of document in Scanning device attached to the client system
  3. User confirms the Scan
  4. this will save the Scanned document in jpg/pdf format on the server
  5. then do the OCR on document

Can any one suggest a way to achieve this.

I read about this https://www.leadtools.com/sdk/engine/imaging not sure how much this can work. Can any one suggest a best way to get this done.

Thanks

update

tried leadtools from https://www.leadtools.com/support/forum/posts/m28036-Re--Scan-and-Upload-v16--NET-with-Caspol-exe-deployment as LEAD Support suggested but it is missing references not sure where and how to get those references


回答1:


HaBo, This is LEAD support. Since you mentioned our LEADTOOLS toolkit, the answer to your question is yes. Our toolkit can be used to implement either of the 2 approaches mentioned by tgolisch.

For the click-once approach, you simply use our Windows Forms controls that contain Twain support and package your application for ClickOnce deployment. This is done, for example, in this demo project: LEADTOOLS ClickOnce Demos

For the custom control approach, see the example code projects on our forums that perform Scan and Upload




回答2:


Web browsers don't have permissions to use system devices like this(major security issue). There are 2 common ways of getting around this:

  1. Make a custom control to run in your browser (flash, silverlight, java applet).
  2. Make a "click-once deployment app" that a user launches from your page.

Both approaches would send the data back to your server via web services or WCF, etc.



来源:https://stackoverflow.com/questions/11977226/document-scanning-from-asp-net-web-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!