Click here to Skip to main content
11,644,982 members (69,723 online)
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 10-Jul-12 23:04pm
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)

  Print Answers RSS
0 OriginalGriff 700
1 jyo.net 494
2 Sergey Alexandrovich Kryukov 439
3 Afzaal Ahmad Zeeshan 404
4 CPallini 386
0 OriginalGriff 1,065
1 Sergey Alexandrovich Kryukov 683
2 DamithSL 681
3 Afzaal Ahmad Zeeshan 662
4 CPallini 555


Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 14 Sep 2012
Copyright © CodeProject, 1999-2015
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