Accessing Local file from a browser?

99封情书 提交于 2019-12-12 05:28:44

问题


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..


回答1:


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.




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/1431643/accessing-local-file-from-a-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!