title: Xamarin Forms - Image source not working from url
body: <p>I have updated my Visual Studio from 2017 (15.9.16) to 2019 (16.3.1).
  Then i opened old (2017) project in 2019 studio, run in Android emulator and have found that all images with url as source are not displayed.
  I tried different variants, but nothing help.</p>
  
  <p>Then i created blank application for test:<br/>
  App1 (.Net Standard 2.0) + App1.Android.<br/></p>
  
  <p><strong>MainPage.xaml:</strong></p>
  
  <pre class="lang-c# prettyprint-override"><code>&lt;StackLayout&gt;
      &lt;Label Text="Welcome to Xamarin.Forms!" 
         HorizontalOptions="Center"
         VerticalOptions="CenterAndExpand" /&gt;
  
      &lt;Frame HeightRequest="200" BackgroundColor="#E7E7E7"&gt;
          &lt;Image x:Name="myImage" Aspect="Fill" /&gt;
          &lt;!--&lt;Image Source="http://lealan.me/Content/images/typist/typist07.jpg" /&gt;--&gt;
          &lt;!--&lt;Image&gt;
              &lt;Image.Source&gt;
                  &lt;UriImageSource Uri="http://lealan.me/Content/images/typist/typist07.jpg" /&gt;
              &lt;/Image.Source&gt;
          &lt;/Image&gt;--&gt;            
      &lt;/Frame&gt;
  &lt;/StackLayout&gt;
  </code></pre>
  
  <p><strong>MainPage.xaml.cs:</strong></p>
  
  <pre class="lang-csharp prettyprint-override"><code>public MainPage()
  {
      InitializeComponent();
  
      var url = "http://lealan.me/Content/images/typist/typist07.jpg";
  
      // variant 1 (not worked)
      //this.myImage.Source = ImageSource.FromUri(new Uri(url));
  
      // variant 2 (not worked)
      //this.myImage.Source = new UriImageSource() { Uri = new Uri(url) };
  
      // variant 3 (only this variant worked)
      var byteArray = new WebClient().DownloadData(url);
      this.myImage.Source = ImageSource.FromStream(() =&gt; new MemoryStream(byteArray));
  
      // + see others variants in MainPage.xaml
  }
  </code></pre>
  
  <p>Also i tried different "Http Client implementation" in "Advanced Android Options", i even tried granted ALL permissions to android application, but nothing help.<br/>
  (only variant 3 worked, but it heavy for MVVM binding)</p>