How can I change the sprite using an image URL?

I have a URL to an image. How can I change the sprite of a gameobject to the image that is on the URL? Thanks

Try the WWW class. The Scripting API has an example that is an almost perfect match for your needs.