stream为服务端接收的文件流 var bytes = new byte[stream.Length]; stream.Read(bytes, 0, bytes.Length); // 设置当前流的位置为流的开始 stream.Seek(0, SeekOrigin.Begin); var pathHead = HttpContext.Current.Request.PhysicalApplicationPath; if (!Directory.Exists(path)) Directory.C…