Loading...

scan document on web

Support for GdTwain ActiveX and GdTwain Pro ActiveX/SDK.

scan document on web

Postby joecool2005 » Wed Sep 05, 2007 4:34 pm

Hi all,

I don't know where to start.

I would like to create an interface on web to let user scan their document and save it on server.

Can someone help me?

Thx
Joe
joecool2005
 
Posts: 10
Joined: Tue Aug 14, 2007 5:21 pm

Postby Loïc » Wed Sep 05, 2007 10:21 pm

Hi,

You can try something like that to acquire an image from a web page and save the resulting image into a distant ftp server:




Code: Select all
<DOCTYPE>
<html>
<head>
<meta>
<title>Document sans nom</title>
</head>

<body>

<script>
function OpenSource(){
var oTWAIN = new ActiveXObject('gdtwain.twain'); 
oTWAIN.TwainSelectSource();
oTWAIN.TwainOpenDefaultSource()
oTWAIN.TwainAcquireToImageID();
oTWAIN.SaveToFTP("JPG", 90, "FTPHOST", "SERVERPATH", "LOGIN", "PASSWORD")

}

OpenSource();
</script>


</body>
</html>


PS: You have to see the SaveToFTP() documentation method: http://www.gdpicture.com/references/gdt ... ToFTP.html

Best regards,

Loïc Carrère
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Postby joecool2005 » Thu Sep 06, 2007 3:36 pm

Hi,

Thanks for the code.

Is it possible to display the image on the web page once the scanning is done?

Thx
Joe
joecool2005
 
Posts: 10
Joined: Tue Aug 14, 2007 5:21 pm

Postby Loïc » Thu Sep 06, 2007 9:26 pm

Yes but you need to use the GdPicture Pro or the GdViewer [Pro] component to do that. The GdTwain component was not designed to display image.

Best regards,

Loïc Carrère
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: scan document on web

Postby jdonnola » Sun Jan 13, 2008 6:48 pm

Hello.
A question very similar to the above. I need to capture an image on the client (using javascript) and then post it back to the server to be processed by c# code behind. I do not want to save to an ftp site, ideally, I would like to pass the image in a hidden form field. Would you be able to provide a code example (javascript) of saving the image as a byte array or string?
I have tried both with no success.

Thank You!!
jdonnola
 
Posts: 3
Joined: Sun Jan 13, 2008 6:37 pm

Re: scan document on web

Postby LotusGuy » Tue Jun 16, 2009 6:22 am

I am also looking for a way to save the image back to a server through the post. I have not been able to figure a way to get a handle on the image to upload it. Any examples?

thanks,
Keith
LotusGuy
 
Posts: 14
Joined: Mon Dec 03, 2007 4:42 am

Re: scan document on web

Postby Couchiman » Wed Oct 21, 2009 4:30 pm

I would like to save it to DB or upload using post.
Couchiman
 
Posts: 2
Joined: Wed Oct 21, 2009 4:24 pm

Re: scan document on web

Postby smather » Wed Dec 16, 2009 8:33 pm

Also trying to do something similar...anyone successful in their search?
smather
 
Posts: 2
Joined: Wed Dec 16, 2009 8:06 pm


Return to GdTwain [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest