Download pictures and store them temporarily

Hello, friends.
I have been trying lately to find out how to get the code to dl a picture from a web and store it temporarily as an asset for using as a material.
And getting it removed when I choose to.

Many thanks!

You can download jpg and png using WWW class, then get a Texture from WWW object and assign it to a Material.