How should I return a file over 1G in size RRS feed

  • Question

  • User-1608281605 posted

    Hi all;

    We have a RESTful service that generates documents. These returned documents can be very large, 100s of megabytes up to gigabytes.

    Writing out the document as the response is failing when over 100M. How should I wrote back these larger documents?

    And they are not files, they are a byte[] (that when saved is a docx file).

    And is there anything different I need to do on the client side too?

    thanks - dave

    Sunday, December 27, 2020 4:20 PM

All replies

  • User1686398519 posted

    Hi david, 

    You can use PushStreamContent. You can click this link to view the solution and a more detailed explanation.

    Best Regards,


    Monday, December 28, 2020 3:05 AM