标签:blog os io ar div new log ad
public static string StreamToString(Stream stream) { stream.Position = 0; using (StreamReader stremReader = new StreamReader(stream, Encoding.UTF8)) { return stremReader.ReadToEnd(); } } public static Stream StringToStream(string str) { byte[] strBytes = Encoding.UTF8.GetBytes(str); return new MemoryStream(strBytes); }
Stream To String , String To Stream,布布扣,bubuko.com
Stream To String , String To Stream
标签:blog os io ar div new log ad
原文地址:http://www.cnblogs.com/ericyi/p/3904604.html