How should I return a file over 1G in size

David Thielen 2,256 Reputation points
2020-12-27T16:21:39.48+00:00

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

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 questions
{count} votes