Forum Discussion

lilBearrr's avatar
13 years ago

REST service response with attachment

I have a REST service that has a GET method that returns a binary file.

I've set these headers and the download works perfectly in any browser:
Content-Length
Content-Type
Content-Disposition

However, in soapUI the file will not show up as an attachment it will just put the binary in the response (for default XML tab).

How should I tell the server to form the response so that the binary file will show up in the attachments tab at the bottom of the response window?

Thank you very much for your time!!!!
  • Any luck?
    I am also facing same issue.
    In browser attachment is getting downloaded
    But in SOAPUI its not
    REST response is there

    It simply shows 0 attachments in response and shows response encoded like
    <data contentType="application/octet-stream" contentLength="42211">iVBORw0K==</data>
    • Hanna's avatar
      Hanna
      New Contributor

      Hi!

      I've got exactly the same problem, is there any solution for this?