I am building a browser based application for document scanning. I have looked at offerings from multiple providers like dynamosoft, asprise, atalasoft etc. My basic question on browser based document scanning is that does any of these products enable scanning from remote machines, using browser based interface? Or should scanner be always connected to the system from where browser is launched?
3 Answers
Yes, There is a Application that enable scanning on remote machine. When someone open the browser a connection between web browser and that local machine application established. This connection is done easily by HTML5 Web Socket. Local application do scan and send this image via this connection to your Browser. Here is the open source repository,

- 111
- 4
-
Very interesting to see this kind of design. What is the role of the form based application in ScanAppForWeb and how does the browser connect to it? Are you using HTML5 web sockets there? – Gaurav Aug 10 '17 at 08:40
-
Yes HTML5 Web socket.That Windows form Application is responsible for and it open a web socket server at Local machine. After scanning it send to browser. – Md. G. Rabbany Aug 10 '17 at 09:39
-
Thanks for this project, what did you use to develop it? – Sachi Tekina Jan 28 '20 at 03:45
-
Asp.net web form application and websocket. – Md. G. Rabbany Jan 29 '20 at 04:10
-
Can I use this with wireless scanners? @Md.G.Rabbany – aleksaRazer22 Feb 24 '20 at 13:12
-
@SachiTekina did you use this app? Does it have support for wireless scanners? – aleksaRazer22 Feb 25 '20 at 14:53
-
@aleksaRazer22 Yes, I have used this app, but I haven't tested it using wireless scanner but I guess it will work. Just install the proper driver on your local machine. – Sachi Tekina Feb 26 '20 at 03:39
Yes. Browser based document scanning relies on the communication between a local service and the web client. Usually, you need to download the installer of the local service when browsing an online demo of document scanning at the first time. If you want to scan documents from a remote machine, just deploy the service on that machine. Then change the IP for web socket connection.
For example, here is the architecture of Dynamic Web TWAIN.
The scanner should be always connected to the system from where the local service (not the web browser) is launched.
You can watch the video to see how to use Raspberry Pi as the scanner service to capture documents from iMac.

- 11,695
- 8
- 37
- 64
I'm hoping this will be helpful, though it's not a direct answer to the question.
After spending a lot of time trying to get WebUSB to work try researching other options, I found a solution that works well for my web app. Simply use scanimage
to scan to the server. The client sends and AJAX request, the server builds a command string to run with shell_exec
in PHP, then use file_get_contents
or whatever with the scanned image. In my situation, there's no reason for the scanner to talk to the client, since the image is going to end up in a database on the server anyway.

- 179
- 11