By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,740 Members | 844 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,740 IT Pros & Developers. It's quick & easy.

HtmlOutputStream

P: n/a
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[i].ToString())

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

Thanks in advance.
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Nov 18 '05 #2

P: n/a
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" <an*******@discussions.microsoft.com> wrote in message
news:D3**********************************@microsof t.com...
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[i].ToString());

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

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.