Hi.
I am attempting to mock an RESTful API that we use to download images from a URL.
The API of the RESTful service documentation says: You receive a JPG or PNG image in case of success with the according header (e.g. ContentType: image/jpeg).
How can I setup a mockservice response to do this? I do not need the image in my reponse to be dynamic. I just need a valid JPG to be returned when the mocked URL receives a GET request.
Thanks
Dave
hi
did you get any answer for this? I am looking for an answer too.
Nah, never got an answer.
Will come back to it at some point. Will update if I ever work it out!
I have tried other some similar files or other type of files (PDF or binary) but any of them don't works. All of them give a "corrupt" file. In fact I tested in SoapUI 5.5
I debugged and I guess that SoapUI return always the file as a Base64 string, whether imported as Base64 is or not in the editor.
I think that is a serious bug, but I don't know how report it.
@DG wrote:
Nah, never got an answer.
Will come back to it at some point. Will update if I ever work it out!