需要合作伙伴联系我,VX(绿泡泡): w6668263      email:ye583025823@126.com

2012年7月23日

C# Stream 和 byte[] 之间的转换

摘要: 一. 二进制转换成图片MemoryStream ms = new MemoryStream(bytes);ms.Position = 0;Image img = Image.FromStream(ms);ms.Close();this.pictureBox1.Image二. C#中byte[]与string的转换代码1、System.Text.UnicodeEncoding converter = new System.Text.UnicodeEncoding(); byte[] inputBytes =converter.GetBytes(inputString); string inp.. 阅读全文

posted @ 2012-07-23 14:06 龙行龘龘9527 阅读(3756) 评论(0) 推荐(1) 编辑

导航