How to use account/update_profile_banner POST method?


Hi there,

I try to figure out how to use the POST method update_profil_banner for my application. I tried to send an NSData base64 encoded in my banner parameter but it didn’t work, then I tried with the UIImage itself and nothing to (better, I get a code 32 error).

With multiple tentative, nothing seems to work good, if I send no banner parameter he respond as normal that banner is needed. When I send him this data :

NSData *imgData = [UIImageJPEGRepresentation(editedImage, 0.5) base64EncodedDataWithOptions:NSDataBase64EncodingEndLineWithLineFeed];

I got a code 0 as an http status code, nothing in data, and off course my banner is not updated.

What should I send to this method ? It’s not a problem with my code 'cause I use the same code as used for posting status and I can do it without problem. Maybe I miss something ?