Mycodefunda.blogspot.com contains coding tricks,tips and examples of solutions worked on
technologies like C# ,Asp.net ,.net, Vb.net ,XML ,Scripts ,Css ,Jquery ,Html ,Javascript , Wcf ,Wpf ,Ms Sql etc.
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