摘要: 将文件转换成二进制方法: /// /// 将文件转换成二进制 /// /// 文件路径 /// public static byte[] ConvertToBinary(string Path) { FileStream stream = new FileInfo(Path).OpenRead(); byte[] buffer = new byte[stream.Length]; stream.Read(buffer, 0, Convert.ToInt32(stream.Length)); return buffer; }将二进制转换成文件方法:using System.IO;strin... 阅读全文
posted @ 2013-07-12 11:47 丶神經病 阅读(643) 评论(0) 推荐(1) 编辑