Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Downloading Files with applet

 
Parth Mankad
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic