C# c#中如何将byte[] 保存到 文件中? C# 中如何将byte[] 保存到 文件中? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 System.IO.FileStream fs = new System.IO.FileStream("filepath", System.IO.FileMode.OpenOrCreate);fs.WriteByte(bytes);fs.Close(); 如何:对新建的数据文件进行读取和写入 http://msdn.microsoft.com/zh-cn/vbasic/36b93480.aspx *****************************************************************************欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/ byte[] bytes = (byte[])dr["img"]; //bytes是你的字节数组FileStream fs = new FileStream(Server.MapPath("//img//1.gif"), FileMode.Create, FileAccess.Write);fs.Write(bytes, 0, bytes.Length);fs.Flush();fs.Close(); C# WinForm 的datagridview中如何更改绑定单元格的类型 讨论C#最基础的东东 System.IO.BinaryWriter.Write的问题 c# udpclient 广播后怎么接受信息,谢谢 如何停止运行中的指定的com+组件? 强类型数据集与treeview 关于treeview控件的imagelist属性的使用的弱问题,急!!! 如何用C#模拟系统中的写字薄 [all scores showhand]一个关于排序的算法问题 C#实现Direct3d Hook的原理,谁懂? 随机数问题(话还没说完) 急求一个用C#编译的简单的连连看游戏
fs.WriteByte(bytes);
fs.Close();
http://msdn.microsoft.com/zh-cn/vbasic/36b93480.aspx
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/
FileStream fs = new FileStream(Server.MapPath("//img//1.gif"), FileMode.Create, FileAccess.Write);
fs.Write(bytes, 0, bytes.Length);
fs.Flush();
fs.Close();