Hi. In my app I need to download a lot of small files (0.1 - 5MB). For example now I have got 50 files and I download them by using this code foreach:
FileOutputStream fOut = null;
File file = new File(localPATH, localName);
if (file.exists())
file.delete();
file.createNewFile();
fOut = new FileOutputStream(file);
dbxClient.files().downloadBuilder(remotePATH).start().download(fOut);
fOut.flush();
fOut.close();
But I think this way isn't good. Download process take from 1 to 2.5 minutes (size of all files = 8MB, my internet speed = 40Mbps).
Can someone tell me what should I use for increase download speed?
Thanks for answers.