[英]Download a large file (1+Gb) from iOS with resume capability
Here is the point: I've got an app that runs with a set of images in very low resolution. 重点是:我有一个应用程序,它以非常低的分辨率运行一组图像。 Nothing special here.
这里没什么特别的。
When the app starts, I'd like it starts the synch download of full resolution photos set process (photos are downloaded off a remote server). 应用启动时,我希望它开始同步下载全分辨率照片设置过程(照片是从远程服务器下载的)。 As the file is typically large (>1Gb), I need a way to resume from a potential stop (whatever the reasons), so that it eventually have 100% of photo set on the device without having to start over from the start.
由于文件通常很大(> 1Gb),因此我需要一种从可能的停止位置恢复播放的方法(无论何种原因),以便最终在设备上设置100%的照片,而不必从头开始。
How would you do that? 你会怎么做?
Your question does not tells about the data in details. 您的问题没有详细说明数据。 There are 2 cases possible :
有两种情况:
NSURLSession
which has the pause and resume facility inbuilt. NSURLSession
。 NSURLSession
. NSURLSession
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.