In Xamarin.Forms I am sending my Image to rest Api, while in the Add the image is not being converted as needed, getting and error cannot convert system.net.http.streamcontent to byte[]
HttpClient client = new HttpClient();
MultipartFormDataContent form = new MultipartFormDataContent();
form.Add(new ByteArrayContent(new StreamContent(new MemoryStream(image1)), "bilddatei", "upload.jpg"));
In the code mentioned image1 is an image taken from camera using Xamarin.Forms, please help me resolve this, or let me know of alternate options to send image to Rest web service.