scan document on web

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
joecool2005
Posts: 10
Joined: Tue Aug 14, 2007 5:21 pm

scan document on web

Post by 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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by 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: https://www.gdpicture.com/references/gdt ... ToFTP.html

Best regards,

Loïc Carrère

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

Post by 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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by 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

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

Re: scan document on web

Post by 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!!

LotusGuy
Posts: 15
Joined: Mon Dec 03, 2007 4:42 am

Re: scan document on web

Post by 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

Couchiman
Posts: 2
Joined: Wed Oct 21, 2009 4:24 pm

Re: scan document on web

Post by Couchiman » Wed Oct 21, 2009 4:30 pm

I would like to save it to DB or upload using post.

smather
Posts: 2
Joined: Wed Dec 16, 2009 8:06 pm

Re: scan document on web

Post by smather » Wed Dec 16, 2009 8:33 pm

Also trying to do something similar...anyone successful in their search?

amk162
Posts: 1
Joined: Thu Apr 10, 2014 9:26 pm

Re: scan document on web

Post by amk162 » Thu Apr 10, 2014 10:03 pm

Hi,
I have a web interface and I am able to load the twain image into a html x-oleobject through your javascript sample. I want to transfer that file to my java side of the project and then using Java I will upload that file to server.
Please let me know how to do that,
amk162

Duque29
Posts: 1
Joined: Tue Feb 27, 2018 3:10 pm

Re: scan document on web

Post by Duque29 » Tue Feb 27, 2018 3:16 pm

Hello guys..

I have a question about scanning...
I m looking for a good scanner for Laserfiche. Which ones do you recommend?
Please ans me...
Bulk scanning service

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest