Skip to main content

Microsoft Silverlight

Answered Question Error display image downloaded from a WebClientRSS Feed

(0)

paolo32
paolo32

Member

Member

66 points

51 Posts

Error display image downloaded from a WebClient

i'm downloading an image with a WebClient, and then loading the stream into a bitmapImage, and then displaying it into an Image control, but for some strange reason, if i run the app without stopping the code anywhere, the image doesnt display into the control, instead if i stop the code, and go through the whole thing using F11, then it works.. Even stranger is that if i press F5 after stepping through part of it, then it still doesn't diplay..
Can anyone help? I'm using VB, not c#. I also just noticed that if i run the code that displays the image under InitializeComponent, then it works, if instead a button pressed event executes it, it doesn't display..

mchlsync
mchlsync

Star

Star

14606 points

2,730 Posts

Silverlight MVP

Re: Error display image downloaded from a WebClient

I think the image path is incorrect or you may get null instead of picture stream.. Please check the path.. or show us the structure of your projects and the code that you wrote.

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


paolo32
paolo32

Member

Member

66 points

51 Posts

Re: Error display image downloaded from a WebClient

No, that's not the case because i just found out that it's actually loading the jpg, but it's like as if it weren't refreshing the image control, because as soon as i change the width of the image control, the image draws the image i just told it to load.. Is there a better way to get it to "refresh"?
Thanks anyway for the reply
Paolo32

Allen Chen – MSFT
Allen Ch...

Star

Star

13862 points

1,803 Posts

Answered Question

Re: Error display image downloaded from a WebClient

Hi:

  This is a bug that has been fixed in Beta 2.

Regards

Sincerely,
Allen Chen
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

paolo32
paolo32

Member

Member

66 points

51 Posts

Re: Error display image downloaded from a WebClient

Oh ok, thanks, but beta 2 isn't out yet, right? I mean, under the "Get Started" page, i only see the beta 1 runtimes.. is that correct?
Thanks a lot for the quick reply directly from Microsoft,

Paolo32

Allen Chen – MSFT
Allen Ch...

Star

Star

13862 points

1,803 Posts

Re: Error display image downloaded from a WebClient

Hi:

paolo32:

Oh ok, thanks, but beta 2 isn't out yet, right? I mean, under the "Get Started" page, i only see the beta 1 runtimes.. is that correct?
Thanks a lot for the quick reply directly from Microsoft,

Paolo32

  Silverlight 2 Beta 2 will be released very soon.

Regards

Sincerely,
Allen Chen
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities