Using Aspose.Slides in .NET web application- and stream generated PPT to client browser

Hi,

I'm considering using Aspose.Slides in our ASP.NET application, and while I see the examples of saving a generated PPT to a file, I really want to stream the generated file directly to the client's browser. Do you have any examples of doing this?

Thanks in advance!


This message was posted using Aspose.Live 2 Forum

Hi,

Here is an example (pres is Presentation object):

this.Response.ContentType = "application/vnd.ms-powerpoint";
this.Response.AppendHeader("Content-Disposition", "attachment; filename=demoppt.ppt");
this.Response.Flush();
System.IO.Stream st = this.Response.OutputStream;
pres.Write(st);
this.Response.End();