是否可以读/从applet写入文件 [英] Is it possible to read/write a file from an applet
本文介绍了是否可以读/从applet写入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图读取并从applet写入文件,所以如果我从我的appletviewer运行小程序,可以让我读/写文件,但是当我试图从我的浏览器做,我得到一个安全例外。任何想法如何做到这一点?
解决方案
是否可以读/从applet写入文件的
块引用>是的,但您需要注册的小程序,并从用户的认可。
一些有用的链接:
- 怎样一个Applet读取本地文件系统中的文件(由coderanch.com)
- 要点,第一部分,第6课:文件访问和权限(从Oracle )
- 第10章:签名Applet (甲骨文)
I've trying to read and write a file from an applet so if I run the applet from my appletviewer it is possible for me to read/write a file but when I try to do it from my browser I get a security exception. Any idea how to do this?
解决方案Is it possible to read/write a file from an applet
Yes, but you need to sign the applet and get approval from the user.
Some useful links:
- How can an Applet read files on the local file system (from coderanch.com)
- Essentials, Part 1, Lesson 6: File Access and Permissions (from oracle)
- Chapter 10: Signed Applets (from oracle)
这篇关于是否可以读/从applet写入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文