How to return the image converted to base64 in Postman [closed]

4

I have Web Service REST Server , I need to traffic a web service image to the client, when the client requests a certain image, the web service converts to base64 and sends it to the client.

I'd like to know what I'm doing to test the return of this image in Postman .

Does anyone have an idea how to do it?

    
asked by anonymous 14.10.2016 / 18:38

1 answer

4

Only with the pure base64 code I believe you will not be able to.

What you can do is to pass a parameter on the request when you want to test, indicating that you want to place the base64 code inside a img tag. And have a return as in the example below:

<img src="data:image/png;base64,iVBORw......" />

This way you can see in Postman:

    
14.10.2016 / 19:42