title: How to pass byte array values from AngularJS to Asp.net WebAPI?
body: <p>I have a WebAPI and it is as under</p>
  
  <pre><code>[HttpPost]
  [Route("AddLead")]
  public void InsertLead(Document doc)
  {
    leadRepository.InsertLead(doc);
  }
  </code></pre>
  
  <p>The <strong>Document class</strong> is as under</p>
  
  <pre><code>public class Document
  {
    public int DocumentId { get; set; }
    public byte[] DocumentData { get; set; }
  
  }
  </code></pre>
  
  <p>Now we can make out that the property <strong>DocumentData</strong> is of Byte Array. A typical value will be</p>
  
  <p><img src="https://i.stack.imgur.com/PShuQ.png" alt="enter image description here"></p>
  
  <p>My client application is in AngularJS. How can I pass Byte Array to the DocumentData Field from AngularJS.?</p>
  
  <p>Thanks</p>