Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
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
thanks
Posted 11-Jul-12 0:04am
Comments
Sandeep Mewara at 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?
ryanb31 at 11-Jul-12 14:52pm
   
What do you want?
anatolium at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You can check out this article:How to Capture, Edit and Upload Images Through Your Web Browser Some samples are provided to help you create a twain web application.
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 14 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100