How to show the response as image(jpeg,png)/file from the APIGEE layer

I have designed an API where I will get image(jpeg,png) as the response from the backend.

But the image is getting encode in Apigee response and not able to view the proper image in the postman, PFA.

Can anyone help me with the above issue.

encodedimage.png

0 3 8,693
3 REPLIES 3

What's the Content Type in your response header ?

It appears to be:

Content Typeapplication/json, text.xml

If you indicate Content-type in response header as one for image, the image file will be interpreted accordingly.

For the possible content-type values, refer to the Internet 🙂 eg. [1]

[1] https://www.lifewire.com/mime-types-by-content-type-3469108

Content-type in response header is image/jpeg as shown here: contenttype.png

Thanks for the information . Its working fine..:)