Android Question FTP or HTTP: resume download

peacemaker

Expert
Licensed User
Longtime User
Hi, All

How better to arrange the downloading huge files over unstable mobile Internet ?
I think some resume is the must in this situation.

How to use resume with FTP object ?
Or how over HTTP ?
 

DonManfred

Expert
Licensed User
Longtime User
from SO

You can try to use the REST command followed by STOR. In theory it should work, but I never used it myself.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
RESTRFC 3659Restart transfer from the specified point.
So, it needs after download error to get the downloaded file part size = X, and send to server extra command "REST X", to resume, instead of FTP1.Download.... ?

@Erel, what is "FTP1.Download" in Java ? Any luck to add such resume .Download2 method?
Or via Reflection over FTP1 object ?
 
Last edited:
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Seems, it's not so easy to make resume by FTP-commands, if only high-level wrapper used.
OK - similar question about resume download over HTTP - what is our standard B4A solution now ?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Seems, it's not so easy to make resume by FTP-commands, if only high-level wrapper used.
Not sure what you mean. It is based on Apache Common Net. You can modify that source code as well.

OK - similar question about resume download over HTTP - what is our standard B4A solution now ?

Adding this header should be simple.
 
Upvote 0
Top