从浏览器访问本地文件? [英] Accessing Local file from a browser?

查看:893
本文介绍了从浏览器访问本地文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想从浏览器访问我系统的本地文件?无论如何都可以实现它,因为有许多安全检查被激活了吗?或使用ActiveX或Java Applet的任何其他工作?请帮帮我..

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

推荐答案

要通过浏览器访问本地文件,您可以使用签名的Java Applet。通过 JFileChooser ,您可以要求用户一个文件,如果applet已经签名并且你已经正确配置了applet的安全性,那么这将有效。

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.

这篇关于从浏览器访问本地文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆