logo       

Re: Converting a MemoryStream to a String: msg#00071

Subject: Re: Converting a MemoryStream to a String
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, "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
>







------------------------ 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
--------------------------------------------------------------------~-> 

 


<Prev in Thread] Current Thread [Next in Thread>