While trying to upload an image using a rest client (Postman) I am getting the status as 201 created and a file is uploaded, but the images are broken in the website.
This is what I am trying in the Postman.
URL [POST]
platform/memories/memories?title=testImage
Headers:
Content-Type : image/jpeg
Authorization : Bearer ACCESS_TOKEN
Body
Form-data -> Choose file
Are there any other headers do we have to add apart from content type and Access_token
?
When I try as binary in Postman instead of form-data image upload properly.
In java code I am converting an image to byte[]
and using ByteArrayRequestEntity uploading to the web, in that case also the images are broken.
Any thoughts?