#region 字节流输出文件 /// <summary> /// 字节流输出文件 /// </summary> /// <param name="outPath">输出路径</param> /// <param name="buffer">文件的字节数组</param> public static void SaveFile(string outPath,byte[] buffer) { try { using (FileStream fileStream=new FileStream(outPath,FileMode.OpenOrCreate,FileAccess.Write)) { fileStream.Write(buffer,0,buffer.Length); } } catch (Exception ex) { WriteLog.WriteErrorInfo(ex); } } #endregion