Return binary data from file as response in REST mock
I am trying to create a REST mock service that reads binary data from a file. The mock service needs to send back a HTTP response using just the binary data as content. I do not know the encoding of the binary data. I searched for possible solutions, but I couldn't find any. Can anyone please help me with this issue? Thank you very much in advance.
Solved! Go to Solution.
The consumer gets the data as a PDF file. If you know any better way to send a PDF as response to a request please let me know.
Here the header I would like to mock:
I found a solution and published on Stackoverflow https://stackoverflow.com/questions/70438610/how-to-return-binary-data-from-soapui-rest-mock