Wednesday, 12 March 2014

How to convert from Stream to String using C# , DotNet



Convert from Stream to string using C#, DotNet


//htmlStream: Memory stream (input)
//html: string (Output)
 string html = System.Text.Encoding.UTF8.GetString(htmlStream.GetBuffer(), 0, (int)htmlStream.Length);


No comments:

Post a Comment