aspose file tools*
The moose likes Applets and the fly likes Opening files from applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Opening files from applet" Watch "Opening files from applet" New topic
Author

Opening files from applet

dhanu sudha
Greenhorn

Joined: Apr 16, 2002
Posts: 11
I have a doubt.
How to open a file from applet?
can anybody tell this?
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Do you mean a file on the user's computer or one from the server?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Tim Eyre
Greenhorn

Joined: May 20, 2002
Posts: 20
I am interested in a reply for this.
I realise there are security restrictions preventing you from opening files on the users computer, but I need my applet to read a list of questions from the server upon which it resides. I can see methods for reading audio clips and images, but none for plain files.
Thanks
meera sood
Ranch Hand

Joined: Dec 18, 2001
Posts: 50
hi!
you can make a URL connection to the server and use a buffered reader to read from the file on the server.
i have the code...lemme know if you need it.
hope this helps.
meera
Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 435
meera Send me the code plz
adilsec@yahoo.com
Thanks


Help gets you when you need it!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Opening files from applet
 
Similar Threads
Communication between two applets
Drag and dropping across applets
Clock
Applet Accessing the EJB
DialogBox is gone after setModal