RestSharp request with image file and json body together
Hi! Im trying to send a POST request to my local API that accept files & json body. I need to perform a single request that sends the json data & the file.


request.AddBody(myFileBytes, myFileType);HttpClient over RestSharp; RestSharp solves the problem that older bcl technologies didn't have convenient apis. HttpClient has much better apis, so you do not need to use RestSharp