0

I have a Post method in a regular post Api

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

}

public class Parameter
{
    public DateTime ValueDate { get; set; }
    public byte[] Blob { get; set; }
}

When Blob Is too large (read from a binary file ) I may receive null, and ModelState is in invalid state.

Any Guess or altenative ?

Skander
  • 77
  • 6
  • See https://stackoverflow.com/questions/38959442/the-maximum-size-of-object-that-can-be-passed-as-parameter-to-post-method – auburg Jan 16 '20 at 16:13
  • Problem is only blob is filtered not the hole objet. I may receive { ValueDate: Blob: null } – Skander Jan 16 '20 at 16:57

0 Answers0