我正在使用这篇文章第一个答案中的方法:HowtocreatebytearrayfromHttpPostedFile但由于某种原因,它不适用于.docx文件。//viewmodel.FileisHttpPostedFileBasebyte[]fileData;using(varbinaryReader=newBinaryReader(viewModel.File.InputStream)){fileData=binaryReader.ReadBytes(viewModel.File.ContentLength);}在.docx文件上fileData显示为{byte[0]},但它适用于pd