ASP.NET Controller 可以使用 InputStream
var stream = Request.InputStream;
而在 ASP.NET Core 中无法使用,需要修改成以下
var stream =Request.Body;
ASP.NET Controller 可以使用 InputStream
var stream = Request.InputStream;
而在 ASP.NET Core 中无法使用,需要修改成以下
var stream =Request.Body;
本文标题:ASP.NET Core 中无法使用InputStream 的解
本文链接:https://www.haomeiwen.com/subject/anfagqtx.html
网友评论