小编sar*_*hra的帖子

无法检索对WebApi的Post调用中的冗长base64(超过3 MB)字符串.我只是得到null而不是数据

我的请求看起来像这样:

User-Agent:Fiddler Content-Type:application/json; charset = utf-8主持人:localhost:12841内容长度:4512954

我有体内 - >" base64encoded String "

API控制器包含一个方法:

        [HttpPost]
        public bool SaveProductImage([FromBody]string image)
        {
            if(image!=null)
            var result =                         productImageRules.StoreSingleImageOnDisk(image.ToString());            
            return result;
        }
Run Code Online (Sandbox Code Playgroud)

c# rest asp.net-web-api

3
推荐指数
1
解决办法
2266
查看次数

标签 统计

asp.net-web-api ×1

c# ×1

rest ×1