Hi all, I am trying to use the update profile image API via OAuth. This is how I build my request.
Set the method as POST. Set the content type as multipart/form-data; boundary="+boundary; (Boundary is generated) Write the OAuth parameters oauth_consumer_key,oauth_nonce,oauth_signature,oauth_signature_method,oauth_timestamp,oauth_token,oauth_version into the request stream. I follow this up with "--+boundary+\r\nContent-Disposition: form-data; name=\"image\"; filename=\"test.JPG}\"\r\nContent-Type: image/jpg\r\n\r\n". This is followed by the byte stream of the image. When I send this request to twitter, I receive 500(Internal server error). What am I doing wrong? Please help. I have been struggling since the past week to get this working.