[英]HttpResponse does not contain a definition for BinaryWrite() in Dot Net Core
I am new in Asp.Net core.我是 Asp.Net 核心的新手。
what is BinaryWrite()
method for httpResponse
in.NetCore? .NetCore 中
httpResponse
的BinaryWrite()
方法是什么?
Also I need Flush()
and End()
in.NetCore But I can't find it.我还需要
Flush()
和End()
in.NetCore 但我找不到它。
You likely need SendFileAsync you might need to install another nuget package to get it Microsoft.AspNetCore.http.Extensions你可能需要SendFileAsync你可能需要安装另一个 nuget 包来获取它Microsoft.AspNetCore.http.Extensions
For example:例如:
response.SendFileAsync(fileNameFullPath);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.