Arya raj

Arya raj

  • NA
  • 57
  • 33.5k

httpclient postasync binarydata with json values

Dec 12 2019 12:18 AM
i need to pass binarydata with json values
 
public async Task<HttpResponseMessage> PostDocuments()
{
var client = new HttpClient();
var url = CoreCommon.GetAppSetting("DRS_API_BASE") + "v1/Documents";
HttpResponseMessage response = client.PostAsync(url, Request.Content).Result;
return response;
}
 
i have tried this code but getting 500 error in postman
 
{
"message":"For input string: \"??""A"µ"S8}\"",
"data": null
}

Answers (1)