问题 I am trying to convert a byte array to an excel workbook. When I do this with Response.BinaryWrite(renderedBytes); it works fine and the file is as expected. But when I try to do it with this which I found online: private Object ByteArrayToObject(byte[] arrBytes) { MemoryStream memStream = new MemoryStream(); BinaryFormatter binForm = new BinaryFormatter(); memStream.Write(arrBytes, 0, arrBytes.Length); memStream.Seek(0, SeekOrigin.Begin); Object obj = (Object)binForm.Deserialize(memStream);