title: Bind base64 string to listview in xamarin form
body: <p>First of all I am new in Xamarin.Form. I am trying to get best from Google but some of functionality I am not able to get even searched a lot.</p>
  
  <p>I am creating a Xamarin.Form app. In that app, I am storing the image to <code>base64 string</code> format in <code>sql server</code> and my data type in sql server is <code>varchar(Max)</code>.</p>
  
  <p>My issue is that, How can I convert the <code>base64 string</code> to an image and also with bind the image to list view.</p>
  
  <p>Code of Listview:</p>
  
  <pre><code>&lt;ListView x:Name="listView" HasUnevenRows="true" SeparatorColor="Gray"&gt;
      &lt;ListView.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;ViewCell&gt;
                  &lt;Image Source="{Binding image}"  Grid.Row="0" 
                          Grid.RowSpan="3" Grid.Column="0" 
                          HorizontalOptions="Center" HeightRequest="50" 
                          VerticalOptions="Center"&gt;
                      &lt;Image.GestureRecognizers&gt;
                          &lt;TapGestureRecognizer Tapped="OnImageTapped" /&gt;
                      &lt;/Image.GestureRecognizers&gt;
                  &lt;/Image&gt;
              &lt;/ViewCell&gt;
          &lt;/DataTemplate&gt;
      &lt;/ListView.ItemTemplate&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>Code of c#:</p>
  
  <pre><code>Public async Task loadDeveloperList()
  {
      try
      {            
          List&lt;employee&gt; employeeDetail = new List&lt;employee&gt;();
  
          HttpClient client = new HttpClient();
          StringBuilder sb = new StringBuilder();
          client.MaxResponseContentBufferSize = 256000;
          var RestUrl = "http://example.com/Getemployee/";
          var uri = new Uri(RestUrl);
          actIndicator.IsVisible = true;
          actIndicator.IsRunning = true;
          var response = await client.GetAsync(uri);
  
          if (response.IsSuccessStatusCode)
          {
              var content = await response.Content.ReadAsStringAsync();
  
              List&lt;employee&gt; onjEmployee = JsonConvert.DeserializeObject&lt;List&lt;employee&gt;&gt;(content);
  
              foreach (var item in onjEmployee)
              {
                  employee emptemp = new employee()
                  {
                      empID = item.empID,
                      name = item.name,
                      city = item.city,
                      post = item.post,
                      salary = item.salary,
                      gender = item.gender,
                      image = item.image                            
                  };
                  string cFotoBase64 = emptemp.image;
                  byte[] ImageFotoBase64 = System.Convert.FromBase64String(cFotoBase64);
  
                  employeeDetail.Add(emptemp);                                         
              }
              listView.ItemsSource = employeeDetail;
          }
      }
      catch (Exception ex)
      {
  
      }          
  }
  </code></pre>
  
  <p>So any one please suggest me a idea and any solution.</p>