Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to copy file?  RSS feed

 
Simon Xu
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I tried to use RandomAccessFile to save one file to another. It wont work. Does anything happens with Applet security?
Please post simple code if possible.
Thanx
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simon,
Yes, this does have to do with Applet security... Applets cannot read or write files on the clients machine... You can do this through Netscape capability classes ( http://developer.netscape.com/docs/manuals/signedobj/capabilities/ ), but this will only work in Netscape browsers, and you will have to mess with signed applets and all kinds of other messy stuff...
HTH,
-Nate
 
Simon Xu
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, Nathan,
I will try it. Thanx for your point.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!