(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .

Silverlight: Handling Cross-Domain Images and Gifs

(0 votes)
0 comments   /   posted by Silverlight Show on May 16, 2009
Tags:   cross-domain-access , images , silverlight-3
Peter Bromberg will show you an easy way to get around cross-domain image urls and handle gif images for Silverlight.

In my travels working with Wally McClure and  David Silverlight  on the Silverlight 3 UI client for Wally's TimedTweet Azure service, I discovered that when we bring back a Twitter Timeline, all the users' profile images point to Amazon S3 storage.  There is no crossdomain.xml or clientaccesspolicy.xml file there, so all the image url requests will be denied by  Silverlight. Obviously, for better or worse, Silverlight has been trained to know that any image that doesn't come from the same domain it was served from is a baddie, unless there is an enabling policy file there. Now of course all this extra checking means extra HTTP Requests over the wire, but hey - that's progress.


Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter