• Post Reply Bookmark Topic Watch Topic
  • New Topic

Continue downloading

 
jake nyman
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I should implemed a serverside application that allows clients to
download files. If client's donwload breaks, application should remember
how much and what file client was downloading and then continue downloading
from breaking point to end of the whole download.

What could be the nicest way to implement this?
Should my serverside application store download information to database
(e.g. if downloading needs authentication) and delete download information
from database when download is completed succesfully.
If there is no authentication how should it then be handled?

Any suggestions how these kinds of features are implemented in Web Applications?

Cheers

jn
 
Indraneel A Das
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One simple approach can be : You can create a applet which will store all download information (like distination filename, file location, what is being downloaded) may be in a cookie. Anything program running on the client side can have accurate download information when the connection brakes.
When connection is resumed, send the number of bytes already read and start downloading from the next byte.

You need to take care of Security in your application and unauthorized downloads.

Hope this helps
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!