I have to download large amount of data (anywhere between 300MB - 1GB).
I am currently using **NSURLConnection**
to download the data. But, now i am looking at a scenario where the user might loose the internet connection during the download process. Currently i am restarting the entire download process in this scenario, which i think is a very bad way of downloading and a waste of user bandwidth.
Is there a process in which i can manage the downloads with Pause/Resume functionality while downloading.
All major browsers, including Firefox, Internet Explorer and Chrome, enable you to resume a download from where it left off in case of a lost connection, so your download will pause, but it won't be lost. Once you've restored your connection and browser, you can resume the download.
Pause a download: Click the Stop button to the right of the filename in the downloads list. To resume, click the Resume button . Find a downloaded item on your Mac: Click the magnifying glass next to the filename in the downloads list.
Here's a tutorial of how to do this on IOS.
Also check documentation. This will require your server to support range headers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With