java - Local File Access via Web-Application -


I have a web application that wants to get the ability to read files from a specific directory on user PC (and Through some files, this file can be sent to remote DB) - and vice versa, get this file from the remote file and write it on the users PC in this specific directory. Apart from the applet, what are some common / safe ways to achieve this?

Unfortunately, it is not possible to use a web-application. The browser will not allow this - because it represents a security violation on the client side.
You will need explicit permission from the user to upload a file to the server - most web-application files use the upload mechanism - that is manual process.
Although you can use HTML5 web storage, which is similar to cookies, but allows the browser to store key value pairs.
What I think is an applet Java program that is running out of the browser on the client machine - which is why it is able to read / write the local machine.
Hope this will be helpful.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -