I used the PickerController
and loaded a few images on to a NSMutableArray
.
Now i need to upload all of these images at once. am using AFNetworking
and how can i do this?
I went through the AFNetworking
documentation and there was a section called Creating an Upload Task for a Multi-Part Request, with Progress
. However, i am not able to upload the images that are in my NSMutableArray
.
**** NB: I want to upload the images in the NSMutableArray
as a Byte Array. How can i do this? ****
The code i have so far,
NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];
NSURL *URL = [NSURL URLWithString:@"site.com/upload"];
NSURLRequest *request = [NSURLRequest requestWithURL:URL];
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…