Can someone please tell me how I can use an ASIHTTPRequest object in Objective-c to upload an UIImage object? Do I need to convert it to an NSData object?
(This is for an avatar upload url)
E.g.
UIImage *toUpload = [UIImage imageNamed:@"test.jpg"]
URL: "http://www.example.com/api/users/avatar/upload?access_token=12345"
RequestType: PUT
Heres an example using ASIFormRequest that will also attempt to compress the image to given maximum size