string path = Server.MapPath(@"\a.pdf"); FileStream fs = new FileStream(path, FileMode.Create); fs.Write(buffer, 0, buffer.Length); fs.Dispose();
C# byte[]保存成文件
原文:http://www.cnblogs.com/testsec/p/6095760.html