5 Replies Latest reply on Jan 17, 2018 3:50 PM by arunkumar RSS
    arunkumar Explorer

    Service to return a file type



    I wanted to create a service that returns a PDF file. I have a PDF file stored in MyFileRepository thing.


    I used GetFileListingWithLinks service which returns the following URL and with which I can download:



    However, I don't want to expose MyFileRepository thing and also the above URL.


    what should be the service output type for responding file? And the client when invoking the service through REST what should be the Accept header?