Best way to load an image from url to Drawing.Image?
I found this two ways, which one is better or is there any better?
PictureBox pb = new PictureBox();
pb.ImageLocation = "http://lovelypackage.com/wp-content/uploads/2012/02/lovely-package-whatever-wine4.jpg";
Image img = pb.Image;
OR
using (WebClient wc = new WebClient())
{
byte[] bytes = wc.DownloadData("http://lovelypackage.com/wp-content/uploads/2012/02/lovely-package-whatever-wine4.jpg");
MemoryStream ms = new MemoryStream(bytes);
Image img = Image.FromStream(ms);
}