Keith -
Try this:
string myString = Encoding.UTF8.GetString(memoryStream.ToArray());
- Matt
On 6/14/06, Keith R. Pinster <dimondwoof@xxxxxxxxx> wrote:
>
> I tried this but get no data back, only the newline -
>
> using (StreamReader sr = new StreamReader(memoryStream))
> {
> mySB.Append(sr.ReadToEnd().ToString() + Environment.NewLine);
> }
>
> --- In padnug@xxxxxxxxxxxxxxx <padnug%40yahoogroups.com>, "Keith R.
> Pinster" <dimondwoof@...>
>
> wrote:
> >
> > I've been banging my head against this for a couple of hours and
> just
> > can't figure it out. I've got an object that dumps it's result
> into a
> > MemoryStream object. Can someone tell me how to convert this to a
> > string?
> >
> > Thanks
> > KRP
> >
>
>
>
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/dpFolB/TM
--------------------------------------------------------------------~->
|