title: POST service parameter won't bind to request body with array as a property Angular2 typescript
body: <p>I'm trying to send a complex object that will have two int and one byte array properties to a webapi post service. If I send the parameters with only the two int properties populated the body value binds to the service parameters.  Once I populate the array the service parameters are null.</p>
  
  <p>The overall purpose of the app is to send a file in segments to a database to be saved.</p>
  
  <p>Has anyone dealt with anything similar before? Thank you for any help. </p>
  
  <p>Here is the service function making the http POST call</p>
  
  <pre><code>uploadChunk(params: FileParams, success) {
      let body = JSON.stringify({ fileId: new Number(params.fileId), chunkId: new Number(params.chunkId), chunk: new Array(params.chunk) });
      //let body = JSON.stringify({ fileId: params.fileId, chunkId: params.chunkId, chunk: new Array(params.chunk), totalSegments: 0, valid: new Boolean(false), fileName: " ", dateCreated: " ", un: " ", accessToken: " " });
      //let body = JSON.stringify({ params });
      let url = this._fileUrl + 'api/file/UploadChunk';
      debugger;
  
      return this.http.post(url, body, this.postOptions)
          .toPromise()
          .then((res: Response) =&gt; success(res.json()))
          .catch(this.error);
  } 
  </code></pre>
  
  <p>Here is the FileParams object </p>
  
  <pre><code>export class FileParams {    
      fileId: number;
      chunkId: number;
      chunk: Int8Array;
  }
  </code></pre>
  
  <p>The header im using in my service </p>
  
  <pre><code>postHeaders      = new Headers({ 'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8' });
  </code></pre>
  
  <p>Incase it's relevant here's the start of the service method</p>
  
  <pre><code>[HttpPost]
  public int UploadChunk([FromBody]FileUploadParams c)
  { }
  </code></pre>