0

When I debug my Windows Phone app (7.5 and above)

I can use a browser to see this picture : http://xiciimgs.xici.net/d178542377.0/123_s.jpg

But when I use this xaml, I just can't see anything via the emulator or the real phone.

<Image Source="http://xiciimgs.xici.net/d178542377.0/123_s.jpg">
</Image>

why and how to solve it?

Albert Gao
  • 3,653
  • 6
  • 40
  • 69
  • Did you try with your desktop or emulator/phone browser? Your emulator/phone may not be connected to the internet. – Alaa Masoud May 27 '13 at 19:56
  • I test on my phone, it has a internet connection – Albert Gao May 27 '13 at 20:01
  • That's weird. Are you sure your image is visible and not covered entirely by another control within a grid for example? Try make an empty page with nothing but the image and see what happens. – Alaa Masoud May 27 '13 at 20:14
  • can not see it either, when I change the image source to something else, i can see it. – Albert Gao May 27 '13 at 20:28
  • try dummy test. get instance of "WebClient" and try download data and see if phone/emulator is able to download this image. if positive try to set image source from code. If it works I cannot imagine what went wrong with this XAML. – TrN May 27 '13 at 21:43

1 Answers1

1

Look like your JPG file is actually encoded as a GIF. So your problem mitgh be resolve here: Display GIF in a WP7 application with Silverlight

Or if you have access to this image, you could convert it in JPG.

Hope it helps.

Community
  • 1
  • 1
Ouarzy
  • 3,015
  • 1
  • 16
  • 19