Hey Matt - ya that would probably work. At least the IDE likes it.
It turns out that the stream coming back is a specific type of
object, so all I needed to do was create a new object and pass the
stream into it and it parsed it automatically, so this was not
neccessary, but thanks for the feedback anyway! :)
--- In padnug@xxxxxxxxxxxxxxx, "Matt Burton" <matt.burton@...> wrote:
>
> Keith -
>
> Try this:
>
> string myString = Encoding.UTF8.GetString(memoryStream.ToArray());
>
> - Matt
>
> On 6/14/06, Keith R. Pinster <dimondwoof@...> 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
--------------------------------------------------------------------~->
|