4
I have a Web Service REST Server
, need to traffic a web service image to the client, when the client requests a particular image, the web service does the conversion to base64
and send it to the client.
Wanted to know how I do to test the return of this image on Postman
.
Does anyone have any idea how to do?
What is the point of the question? You asked, "Does anyone use Postman for tests?". If you want opinions about Postman, here is not the ideal place for it. But be more specific.
– João Paulo
If you see the tags and the title, you should already understand the meaning of the question, I explained what I did and then asked if anyone has tested the return of the converted Base64 image in Postman, have you tested it?... or just came to criticize my question. Hugs.
– Jefferson Rudolf
Possible duplicate of Return image by Web Service REST Server
– Junior Moreira
Not my dear, just wanted to help you improve your question and at the same time help the forum. See this link about what not to ask.
– João Paulo
I set the question, I hope I was specific, sorry anything.
– Jefferson Rudolf
Well, as far as I know, Postman only presents Pretty format for XML and JSON. To view I believe you will have to use an external app. What you can do is pass a parameter to the request when you want to test so that the return is Base64 within a tag
img
:<img src=”data:<MIMETYPE>;base64,<código>”>
. This way you can see the image in the preview that the browsers present in the network tab. Remembering that Post also has a preview.– João Paulo