Just a hint, maybe it's obvious, I don't know: P
It's nice to send a large file in chunks like 2mb, and on the server side you just add bytes to the target file. The server knows what bytes it needs, and if the download is interrupted and continues later, the server can simply send a message about which bytes to start downloading the file again. Then we get the ability to resume (is this the word ?: P) and the security of large HTTP downloads (since in fact we send a lot of smuller downloads, and each download is checked for the correct size on the server).
We wrote an implementation like this once, with a Java applet as a client and PHP on the server, I will see if I can dig it out as a link for you: p
source share