try Encoding.UTF8.GetString(memStream.ToArray())
On 6/14/06, Keith R. Pinster <dimondwoof@xxxxxxxxx> wrote:
>
> Woops, looks like that doesn't work. I get an "Argument
> type 'System.IO.MemoryStream' is not assignable to parameter type 'byte
> []'" message.
>
> --- In padnug@xxxxxxxxxxxxxxx <padnug%40yahoogroups.com>, "Sonny N."
> <javabrewery@...> wrote:
> >
> > Encoding.UTF8.GetString(sContents)
>
> >
> > --- "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 --------------------~-->
Everything you need is one click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/dpFolB/TM
--------------------------------------------------------------------~->
|