How to Load External Image via URL in Windows Phone?

If you want to load an external image from a website to your Windows Phone Application, you can easily do it by assigning the URI to the Bitmap Image .

In the below example, an Image is picked from an URL and then is displayed in the Image control in Windows Phone.

 private void button1_Click(object sender, RoutedEventArgs e)
 {
       image1.Source = new BitmapImage(new Uri("http://developerpublish.com/wp-content/uploads/2011/09/45_2.png", UriKind.Absolute)); 
 }

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...