LRResty icon indicating copy to clipboard operation
LRResty copied to clipboard

Add Example for POSTing UIImages

Open pyro2927 opened this issue 12 years ago • 0 comments

RestKit allows you to post images with:

RKParams* params = [RKParams params];
RKParamsAttachment* attachment = [params setData:UIImageJPEGRepresentation([thumbnail.image fixOrientation], 0.1) MIMEType:@"image/jpeg" forParam:@"timeline[photo]"];
[[RKClient sharedClient] post:urlString params:params delegate:self];

Is there any easy way to do that with LRResty?

pyro2927 avatar Feb 12 '13 21:02 pyro2927