HtmlOutputStream

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

I need to automatically send a user a copy of a report when they view it on a web application
I have been trying to do this with

System.IO.Stream stream = this.Response.OutputStream
byte[] buffer = new byte[buffer.Length]; //Length not support exceptio
stream.Read(buffer, 0, buffer.Length)
System.Text.StringBuilder str = new System.Text.StringBuilder()
for(int i=0;i>buffer.Length;i++) str.Append(buffer.ToString())

It seems like a pretty straight forward thing to do, Theres propbobally a property or something I can use

Thanks in advance.
 
Sorry, to be more clear
I am going to save a copy of the a file I will create (html) and send the user a copy as well
 
Looks like you're trying to raise up your byte array by its bootstraps.
You're assigning its length when you create it with its (non-existent)
length. Until you create the array, it has no length, and does not, in fact,
exist.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Garnet said:
Hello,

I need to automatically send a user a copy of a report when they view it on a web application.
I have been trying to do this with :

System.IO.Stream stream = this.Response.OutputStream;
byte[] buffer = new byte[buffer.Length]; //Length not support exception
stream.Read(buffer, 0, buffer.Length);
System.Text.StringBuilder str = new System.Text.StringBuilder();
for(int i=0;i>buffer.Length;i++) str.Append(buffer.ToString());

It seems like a pretty straight forward thing to do, Theres propbobally a

property or something I can use.
 
Back
Top