How can I allow a user (client) to choose a local image file (on his hard drive) and modify it using an applet from his browser ? I am trying to develop a web page that enables the user to choose an Image file, manipulate the image using a java applet, and display the results.
Using Javas JFileChooser does not work when called from a browser, probably due to security privileges issues. On the other hand, I can choose and upload any file using a JavaScript form: ... <FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="process.asp"> <INPUT TYPE=FILE NAME="file1"><BR>
It seems that I can choose an image file with a Java script form and process an image with an applet. How can I choose a file AND process it locally ?
(I do not wish to upload the file to the server using JavaScript form and then back to the clients applet for processing since it will be a tremendous waste of resources).
Man this is bcoz you don't have the permission to do that You need to specify the security permissions. I hope you know how to apply permissions. If not plz let me know, I will help you out. Bcoz I have done the same thing