摘要:
public static byte[] GetFile(string strFileName) { Stream s = new FileStream(strFileName,FileMode.Open); byte[] buffer = new byte[s.Length]; s.Read(buffer,0,(int)s.Length); return buffer; }上面代码从文件生成了字节数组,然后怎样把字节数组保存为文件?public void saveFile(byte[] buffer){Stream s = new FileStream(strFileName, FileMo 阅读全文