I have 10 images, I uploaded to server using:
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"];
}];
I get file include 10 images on server. How to download this file and split in to image, save in Document folder?
How to download a file and save it to the documents directory with AFNetworking?
Thank in advanced.