How to read and run files on hard drive from a webpage?
Here's the gist of what I'm trying to do: A user will have to match his fingerprint (captured image) with an 开发者_高级运维image stored in the server. I've implemented the image matching program in OpenCV and it's a .exe on disk. The output of this is flag.txt. Basically if the value of flag.txt is non-zero the user may gain access to the next webpage.
The question is - how to I run the .exe and read the contents of the resultant text file (saved on the hard-drive) from a webpage?
EDIT - please note, I am not sure under which tags this falls.
You need to implement kind of web service which will execute you .exe files and do other logic and access this web service from web page. Browser won't allow web page do such actions because of security reasons
精彩评论