File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes how to copy file? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "how to copy file?" Watch "how to copy file?" New topic
Author

how to copy file?

Simon Xu
Ranch Hand

Joined: Aug 16, 2000
Posts: 235
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

Joined: Oct 18, 2000
Posts: 4120

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


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Simon Xu
Ranch Hand

Joined: Aug 16, 2000
Posts: 235
hi, Nathan,
I will try it. Thanx for your point.
 
 
subject: how to copy file?
 
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture