我有10张图片,我上传到服务器使用:
NSMutableURLRequest *request = [httpClient multipartFormRequestWithMethod:@"PUT"
path:[NSString stringWithFormat:@"/v1/AUTH_f4ea72a791db421fa2de4baa8579f691/%@/preImg", container]
parameters:nil
constructingBodyWithBlock: ^(id <AFMultipartFormData>formData){
[formData appendPartWithFileData:imageData
name:@"avatar"
fileName:@"preIMG_0001.JPG"
mimeType:@"image/jpeg"];
}];
我在服务器上获取包含10张图像的文件。如何下载此文件并拆分为图像,保存在文档文件夹中?
How to download a file and save it to the documents directory with AFNetworking?
先谢谢。