Since the scanner is installed in client's PC, that means we should use Javascript to do this. The next question is, can javascript access the scanner ??? Unfortunately, javascript can not do that. That means there should be a third party software that is able to provide the scanner as a service.
There are many good software for that, but most of them are not free. After browsed a while, I finally found someone who developed this software and share it for free.
Here is the link : https://github.com/mgriit/ScanAppForWeb
Yup, its Scan AppForWeb. I have not tried this in my web app actually, but I have tried to install it and it seems good.
So after I read the README, it uses web socket to access the scanner. The Scanner can be accessed via ws://localhost:8181.
To install the software, download Scan_App_SetUp.msi and setup.exe or just download the ScanApps.zip and extract the file. After it installed, open cmd and check netstat -an.
And here is the result:
look at the third last line, the state of port 8181 is LISTENING. It looks really good.
Next, I'll post whether the Web Scanner works or not....hope it works...
Tidak ada komentar:
Posting Komentar