1

I am using REST client to upload a profile photo to IBM connections but i am struck at the part where you have to send binary image file along with the PUT request. So far I've done this:-

request.put("https://servername.com"/profiles/photo.do?
        key="profileuserID"),
        ContentType:image/jpeg

i have tried to put insert image by encoding it into base64 format or adding into file field in REST client. But it always returns nothing. It does remove the previous profile picture but it doesnt upload the new one.

Now i want to ask how to include binary image file in the request payload?

Pete
  • 57,112
  • 28
  • 117
  • 166

0 Answers0