user31030
user31030

Reputation: 31

Fetching images from two different servers

Can anyone please tell me the procedure to bring two images from different servers in Silverlight 2?

Upvotes: 1

Views: 118

Answers (1)

Tanmoy
Tanmoy

Reputation: 45652

If You have the url u can just set it to image controls.

img1.Source=new BitmapImage(new Uri(your_url_for_the_iamge)); //img1 is your image control

If you want to download them and then use you need to use WebClient class and one clientaccesspolicy.xml file should be present in the server from where you are donwloading the images and that xml file should grant you access to where your Silverlight application is.

Upvotes: 1

Related Questions