Android Question FTP. How to download many photos in parallel?

vecino

Well-Known Member
Licensed User
Longtime User
Hello, I have to download via FTP a directory that has many small photos.
Currently I make an ftp.list and download the whole list one by one.
Is there any way to download several in parallel to make it faster?
Thank you.
 

Brian Dean

Well-Known Member
Licensed User
Longtime User
I am not an expert in this area, but in my experience FTP servers will generally allow more that one concurrent connection from a client, but will set a fairly low limit (eg four or five, maybe less) for the number of concurrent connections.
 
Upvote 0

Brian Dean

Well-Known Member
Licensed User
Longtime User
Both of your suggestions are possible, but I think that you need to think ahead about how you would like to manage concurrent downloads and avoid repetitive coding. Personally I would expect to wrap the FTP in a object with a "downloadFile()" method, and then put several of these objects (in a list) into a top-level class that manages the whole task.
 
Upvote 0
Top