5 Replies Latest reply on Mar 24, 2016 4:49 AM by arunkumar RSS
    arunkumar Explorer

    Service to return a file type

    Hi,

     

    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:

         http://myserver/Thingworx/FileRepositories/MyFileRepository/Test.pdf

     

    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?