Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ehab.aboshehab's avatar

POSTMAN json body and image uploading

hey guys, I am building a rest api that required accept a form from android app. this form has data and one uploaded image. usually in postman when i test i do like this :

Header :

Accept:application/json
Content-Type:application/json
Authorization:Bearer eyJ0eXAiOiJKV1QiLC...

Body : row JSON(application/json)

{
    "example" : "example",
    "example1" : "example1"
}

so if i want to add image to this request in postman how can i do it ??

0 likes
2 replies
tykus's avatar
tykus
Best Answer
Level 104

You can base64 encode the image

Please or to participate in this conversation.