Hi, We have a requirement to download multiple documents, zip them and allow user to download zip file. The documents are downloaded sequentially and the number of documents can be upto 30 documents with varied sizes. We are planning to use URLConnection or any other open source urlconnection API if they have better features.
What we would like to understand is there could be files which are large in size (may be 40-50 MB) and could take more time to download such files. We would like to have the logic to determine the size, avoid downloading such files which are either large in size or for which its taking considerable amount of time to download.
Appreciate any thoughs on the best way to avoid file downloading either based on time or the size of document.
Thanks.