download file from server using applet
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sumit_Murgai
Posted On:   Thursday, March 28, 2002 03:38 AM

i have a applet and i want to download a file(say .txt,.bmp ,.doc file) from the server using the applet.
how can i do that.

Re: download file from server using applet

Posted By:   John_Zukowski  
Posted On:   Thursday, March 28, 2002 03:34 PM

If you do a showDocument() from the applet, you can "download" the file from anywhere. It wouldn't be accessible to the applet, but it can be downloaded. Reading files from the serer from which the applet came is already covered in the FAQ.

Re: download file from server using applet

Posted By:   Anonymous  
Posted On:   Thursday, March 28, 2002 08:45 AM

If you want to download a file located on a server from an applet, the file has to be on the same server of the applet or you will get security exceptions. You can get a file using a URLConnection (there are several examples of this on the web), but you can not write it on the client, if that is what you are planning to do (again for security reasons). The only way to bypass those security restrictions is to use a signed applet.

Re: download file from server using applet

Posted By:   Bozidar_Dangubic  
Posted On:   Thursday, March 28, 2002 05:03 AM

from which server? from any server or from server that served the applet to the client?
About | Sitemap | Contact