My app will retrieve a list of all images from a specific folder and attempt to upload them to a server via an API endpoint

Due to the above requirements, an image picker is not suited

Below is the method in the shared code that is passed a list of UIImages (I am trying to get it to work with just ios for now but the same scenario will eventually be applied to Android also)

The below does not work, as when I view the image on the server(AWS), it is in code format. It also says the content type is application/json on the server which I don't understand as I'm setting it to image/png

```
private async Task UploadImages(List<UIImage> images)
{            
    HttpClient client = new HttpClient();
    var contentType = new MediaTypeWithQualityHeaderValue("image/png");
    client.DefaultRequestHeaders.Accept.Add(contentType);
    client.DefaultRequestHeaders.Add("Id-Token", Application.Current.Properties["id_token"].ToString());

    foreach (var image in images)
    {
        try
        {                                        
            string baseUrl = $"https://********/dev/ferret-test/media/team1/user1/device1/test1.png";             
            client.BaseAddress = new Uri(baseUrl);

            //UploadModel uploadModel = new UploadModel
            //{
            //    image_file = image.AsPNG()
            //};

            byte[] bArray = null;
            Stream pst = image.AsPNG().AsStream();
            using (MemoryStream ms = new MemoryStream())
            {
                ms.Position = 0;
                pst.CopyTo(ms);
                bArray = ms.ToArray();
            }

            //string stringData = JsonConvert.SerializeObject(bArray);
            //var contentData = new StringContent(stringData,
            //System.Text.Encoding.UTF8, "image/png");

            //Byte[] myByteArray = new Byte[imageData.Length];
            //System.Runtime.InteropServices.Marshal.Copy(imageData.Bytes, myByteArray, 0, Convert.ToInt32(imageData.Length));                        

            var postRequest = new HttpRequestMessage(HttpMethod.Put, baseUrl)
            {
                Content = new ByteArrayContent(bArray)
            };

            var response = await client.SendAsync(postRequest);
            response.EnsureSuccessStatusCode();
            string stringJWT = response.Content.ReadAsStringAsync().Result;   
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex);
        }
    }
}       

```