博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年7月3日

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

posted @ 2013-07-03 18:33 linFen 阅读(933) 评论(0) 推荐(0) 编辑