I have a WebAPI and it is as under
[HttpPost]
[Route("AddLead")]
public void InsertLead(Document doc)
{
leadRepository.InsertLead(doc);
}
The Document class is as under
public class Document
{
public int DocumentId { get; set; }
public byte[] DocumentData { get; set; }
}
Now we can make out that the property DocumentData is of Byte Array. A typical value will be
My client application is in AngularJS. How can I pass Byte Array to the DocumentData Field from AngularJS.?
Thanks