Muhammad Ummar
Muhammad Ummar

Reputation: 3631

Accessing Local file from a browser?

Hi I want to access a local file of my system from the browser? Is there anyway through which it can be achieved as there are lot of security checks invloved? or any other work arround using ActiveX or Java Applet???? Please help me out..

Upvotes: 0

Views: 512

Answers (3)

Valentin Rocher
Valentin Rocher

Reputation: 11669

To access a local file through your browser, you can use a signed Java Applet. Through JFileChooser you can ask the user for a file, and if the applet is signed and you have configured properly the security of your applet, this will work.

Here is the sun page on signing an applet.

Upvotes: 1

Tom Hawtin - tackline
Tom Hawtin - tackline

Reputation: 147154

From 6u10, unsigned Java applets can load and save files through a file chooser using the JNLP service APIs.

Upvotes: 0

Aaron Digulla
Aaron Digulla

Reputation: 328594

JavaScript won't work but you can use flash, ActiveX or a signed Java applet.

Upvotes: 1

Related Questions