C# byte[]保存成文件

string path = Server.MapPath(@"a.pdf");
            FileStream fs = new FileStream(path, FileMode.Create);
            fs.Write(buffer, 0, buffer.Length);
            fs.Dispose();
原文地址:https://www.cnblogs.com/testsec/p/6095760.html