locked
Can not display external image RRS feed

  • Question

  • I'm trying to use following code but it doesn't work.

                Uri uri = new Uri("http://ads.stackoverflow.com/ads/reach_devs2.png", UriKind.Absolute);
                BitmapImage bi = new System.Windows.Media.Imaging.BitmapImage(uri);
                img.Source = bi;

     But works if I for example include image into project and use relative URI Help please

    Wednesday, May 5, 2010 9:15 AM

Answers

  • The domain where the image is has to have a client access policy that allows you to get it.

    Wednesday, May 5, 2010 4:16 PM

All replies

  • It's probably a cross domain issue.

    Wednesday, May 5, 2010 9:23 AM
  • How can I solve it?
    Wednesday, May 5, 2010 4:02 PM
  • The domain where the image is has to have a client access policy that allows you to get it.

    Wednesday, May 5, 2010 4:16 PM