Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Jun 11, 2008 07:24 PM|LINK
Response.OutputStream can not be read directly (it can only be written to).
One possible solution not tested but can be tried:
1) Create a class derived from BufferedStream that overrides the Write method to do base.Write() AND write to a file (let's say the new class will be named FileWriterBufferedStream)
2) Set the HttpResponse.Filter (http://msdn.microsoft.com/en-us/library/system.web.httpresponse.filter.aspx) to:
Response.Filter = new FileWriterBufferedStream(Response.Filter);