Click here to Skip to main content
13,085,936 members (88,286 online)
Rate this:
Please Sign up or sign in to vote.
See more:
hello I am looking for sample code twain web application

this win sample code

I want this web api'file:///C://TZTwain/TZTwain.exe',1); security problems..
and I do not want to use 3rd party libraries

Posted 10-Jul-12 23:04pm
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?
ryanb31 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
Rate this: bad
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.
Rate this: bad
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 14 Sep 2012
Copyright © CodeProject, 1999-2017
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