标签:ack length 异常 memory 方案 exception operation file lex
FileStreamResult 抛出异常:
解决方案:
Stream 必须 seek begin
伪代码如下:
Stream ms = new MemoryStream(); book.Write(ms); ms.Seek(0, SeekOrigin.Begin); //seek begin return ms;
InvalidOperationException: Response Content-Length mismatch
标签:ack length 异常 memory 方案 exception operation file lex
原文地址:https://www.cnblogs.com/CnKker/p/12170660.html