title: Downloading large file from asp.net core web api to winforms throws json value of length is large and not supported
body: <p>While downloading large files from ASP.Net Core Web API to WinForms, JSON value of <code>n</code> length is too large and not supported.</p>
  
  <p>In WinForms:</p>
  
  <pre class="lang-c# prettyprint-override"><code>Httpcontent httpdata = new StringContent(Jsoncpnvert.Serializeobject(inputmodel),encoding.utf8));
  
  Httpclient client = new httpclient();
  MultipartFormDataContent form = new MultipartFormDataContent();
  form.add(httpdata,form);
  
  try{
  Var response = client.postasync(url,form). result;
  Downloadmodel model = response.content.Readasasync&lt;downloadmodel&gt;(). result;
  
  // Here 500 internal server error occurs
  
  }
  
  Server side :
  
  [Httppost]
  Public downloadreturnmodel download ()
  {
  
  Var httpdata = Request.form["data"];
  // Do some process
  Result is a downloadreturnmodel 
  Return result; 
  }
  
  </code></pre>