Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/rest/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在Rest Api C中向Post请求参数添加一个大字节数组#_C#_Rest_Api - Fatal编程技术网

C# 在Rest Api C中向Post请求参数添加一个大字节数组#

C# 在Rest Api C中向Post请求参数添加一个大字节数组#,c#,rest,api,C#,Rest,Api,我在常规Post Api中有一个Post方法 public async Task<IHttpActionResult> Postt([FromBody]Parameter parameter) { } public class Parameter { public DateTime ValueDate { get; set; } public byte[] Blob { get; set; } } public异步任务Postt([FromBody]参数) {

我在常规Post Api中有一个Post方法

public async Task<IHttpActionResult> Postt([FromBody]Parameter parameter)
{

}

public class Parameter
{
    public DateTime ValueDate { get; set; }
    public byte[] Blob { get; set; }
}
public异步任务Postt([FromBody]参数)
{
}
公共类参数
{
public DateTime ValueDate{get;set;}
公共字节[]Blob{get;set;}
}
当Blob太大(从二进制文件读取)时,我可能会收到null,并且ModelState处于无效状态


有任何猜测或替代吗?

请看问题是只有水滴被过滤,而不是孔对象。我可能会收到{ValueDate:Blob:null}