C# - MemoryStream转换为字符串

MemoryStream stream;

byte[] b=stream.ToArray();
string s = System.Text.Encoding.UTF8.GetString(b,0,b.Length);

posted @ 2012-11-02 15:47  xiaofoyuan  阅读(11451)  评论(0编辑  收藏  举报