scan through webpage

hi, experts,

     I am trying to search for a solution where I could scan document through web page in a typical web application built primarily in java/j2ee.
    Any reference/idea is welcomed!

thanks,
Acton
LVL 19
actonwangAsked:
Who is Participating?
 
Pramod KumarCommented:
http://stackoverflow.com/questions/3504231/how-can-i-trigger-a-scanner-from-a-browser

This isn't possible from directly within a standard HTML/js page - js has no permissions to access peripherals like scanners.

It may well be possible using either flash or silverlight but suspect you'd hit permissions issues (There's articles here and here but it may be a) too involved and b) not quite what you're after).

If you control the machines the web app will be running on, I'd recommend using a simple desktop client to perform the scan and allowing connections to it from within the webpage by opening up a local port

so js does an AJAX call to (say) http://localhost:1234/Services/Scan which returns an image


=======================================
Hope below may be helpful fro you:
http://www.chestysoft.com/ximage/twainupload.asp
0
 
CEHJCommented:
You would have to upload the document to use an actual scanner on the server side. I'm assuming you're talking about optical scanning ...
0
 
actonwangAuthor Commented:
To make it clear, I want clients to scan their documents in their local and then transfer to the server and not vice versa.

so I am asking the solution at client side and not server side.

thanks.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
CEHJCommented:
Yes, i understand that. From the client's point of view, it's file upload.

You need to get something like a servlet at the other end to invoke the hardware, then send the image back to the client
0
 
actonwangAuthor Commented:
is there any solution using flash or java applet?
0
 
CEHJCommented:
>>This isn't possible from directly within a standard HTML/js page - js has no permissions to access peripherals like scanners.

As i understand it, actonwang doesn't want to access peripherals at the client, so that's academic
0
 
actonwangAuthor Commented:
CEHJ,  i don't have this limitation and welcome any open ideas. but preferablly on java/flash/applet but any other .net or other solutions are also welcome since I want to get some picture what people are using/doing.
0
 
CEHJCommented:

>>CEHJ,  i don't have this limitation and welcome any open ideas.

If you mean it's OK to run at the client, then you need to have ALL clients equipped with a scanner that can be accessed with an api from client-side *signed* code. That would be a tall order normally...
0
 
Pramod KumarCommented:
There are some API by which u can trigger scanner device, but i have not tested those.

http://www.catenary.com/howto/scn3.html

Once it is  done, then you should write a signed applet and put onto your webpage.
0
 
actonwangAuthor Commented:
thanks,

can anyone give an real life example or some sites which are actually using the technology? does it have to tie with specific scanner hardware?
0
 
CEHJCommented:
You might be better off finding an online service with an api. I don't know whether this has an api, but it certainly does OCR ok:

http://www.onlineocr.net/default.aspx
0
 
indigo23Commented:
0
 
actonwangAuthor Commented:
thanks. guys
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.