my dog learned polymorphism
The moose likes Applets and the fly likes Downloading Files with applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Downloading Files with applet" Watch "Downloading Files with applet" New topic

Downloading Files with applet

Parth Mankad

Joined: Jan 27, 2003
Posts: 18
i want to download files from my server using an applet.the files need to be downloaded to any location on the client.however the user should not be givent the save file dialog box.plz help me how can i do this
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
The applet needs to be digitally signed, so that it is allowed to do file I/O on the client. It doesn't need to ask the user where to store the file - it can create it whereever it likes, under whatever filename it wants. Retrieving the file from the server could be as simple as "new URL(...).getContent()", depending on what kind of file you're dealing with.
I agree. Here's the link:
subject: Downloading Files with applet
jQuery in Action, 3rd edition