I have an POST call in my API that takes some data, turns it into a docx file, turns the file into a byte array, and then returns that file using File() in the response to the front end for downloading. It works great, but lately the size of the file is starting to grow larger as more information is added, and we are now getting failures.
The API return looks like this:
byte[] file = makeNewDocx(_data);
return File(file, "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
I read that there is a .NET variable that restricts how much data is being sent back to the front end, but I haven't found any documentation on that.
Anyone ever dealt with something like this?