I am using the following code to stream pptx which is in a MemoryStream object but when I open it I get Repair message in PowerPoint, what is the correct way of writing Memo
I tried all variants of end, close, flush, and System.Web.HttpContext.Current.ApplicationInstance.CompleteRequest() and none of them worked.
Then I added the content length to the header: Response.AddHeader("Content-Length", asset.File_Size.ToString());
In this example asset is a class that has a Int32 called File_Size
This worked for me and nothing else did.