Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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

VB
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

thanks
Posted
Comments
Sandeep Mewara 11-Jul-12 6:01am    
Not clear. You already have an article link for web twain, what more are you seeking? Can you elaborate on what is your issue and where are you stuck?
ZurdoDev 11-Jul-12 14:52pm    
What do you want?
anatolium 11-Jul-12 16:11pm    
hello I'm looking for projects for the web twain
I would like Twain web scanner project(sample code)
thank you

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900