Image image = Image.FromFile(@"F:\image2\DSC02028.JPG");
var data = ImageToByteArray(image);
var requestContent = new MultipartFormDataContent();
// here you can specify boundary if you need---^
var imageContent = new ByteArrayContent(data);
imageContent.Headers.ContentType =
MediaTypeHeaderValue.Parse("image/jpeg");
requestContent.Add(imageContent, "image", "image.jpg");
using (var client = new HttpClient())
{
client.BaseAddress = new Uri("http://127.0.0.1:5000");
var result = client.PostAsync("/api/values", requestContent).Result;
//result.Content.ReadAsStringAsync().Result;
}