I am currently using aspose slides to download power points from a file storage system we have via a Http response. In which I am setting the headers on the response to:
context.Response.ClearHeaders();
context.Response.ClearContent();
context.Response.AppendHeader(“Cache-Control”, “max-age=0”);
context.Response.AppendHeader(“Content-Type”, “application/force-download”);
context.Response.AppendHeader(“Content-Type”, “application/octet-stream”);
context.Response.AppendHeader(“Content-Type”, “application/download”);
context.Response.AppendHeader(“Content-Transfer-Encoding”, “binary”);
context.Response.AppendHeader(“Content-Disposition”,
string.Format(“attachment; filename=”{0}"", fileInfo.FileName));
I am currently creating a new presentation using a MemoryStream and then save the presentation using a http response and the file name.
When the download finishes and I go to open the file it says it needs repair. This happens with a new blank presentation with nothing in it.