1
Answer

httpclient postasync binarydata with json values

Arya raj

Arya raj

5y
2k
1
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)