Meaningless Drivel is fun!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Downloading Files with applet" Watch "Downloading Files with applet" New topic
Author

Downloading Files with applet

Parth Mankad
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
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.


Ping & DNS - my free Android networking tools app
 
Consider Paul's rocket mass heater.
 
subject: Downloading Files with applet
 
Similar Threads
tomcat service not able to connect with the database
Sci-Fi Goodness
Jasper Exception
WA #1.....word association
Bluetooth Apps using Nokia 6600