摘要: string ToString(string path) { FileStream fs = new FileStream(path, FileMode.Open); byte[] buf = new byte[fs.Length]; fs.Read(buf, 0, (int)fs.Length); string s = Convert.ToBase64String(buf); fs.Close(); return s; } Image ToImage(string s) { byte[] buf = Convert.FromBase64String(s); MemoryStream ms = 阅读全文
posted @ 2011-06-22 20:27 greencolor 阅读(200) 评论(0) 推荐(0) 编辑