Page 1 of 1
scan document on web
Posted: Wed Sep 05, 2007 4:34 pm
by joecool2005
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
Posted: Wed Sep 05, 2007 10:21 pm
by Loïc
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
Posted: Thu Sep 06, 2007 3:36 pm
by joecool2005
Hi,
Thanks for the code.
Is it possible to display the image on the web page once the scanning is done?
Thx
Joe
Posted: Thu Sep 06, 2007 9:26 pm
by Loïc
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
Re: scan document on web
Posted: Sun Jan 13, 2008 6:48 pm
by jdonnola
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!!
Re: scan document on web
Posted: Tue Jun 16, 2009 6:22 am
by LotusGuy
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
Re: scan document on web
Posted: Wed Oct 21, 2009 4:30 pm
by Couchiman
I would like to save it to DB or upload using post.
Re: scan document on web
Posted: Wed Dec 16, 2009 8:33 pm
by smather
Also trying to do something similar...anyone successful in their search?
Re: scan document on web
Posted: Thu Apr 10, 2014 10:03 pm
by amk162
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
Re: scan document on web
Posted: Tue Feb 27, 2018 3:16 pm
by Duque29
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