Hi Ray,
As for the retrieving images from remote site via web url address problem,
I think we can choose either the
"WebClient" or "WebRequest" class under the System.Net namespace.
1.The webclient class is a more powerful and encapsulated one, we can use
it to download web resource as below:
string url =
"
http://msdn.microsoft.com/library/toolbar/3.0/images/banners/msdn_masthead_
ltr.gif";
System.Net.WebClient wc = new System.Net.WebClient();
wc.DownloadFile(url, "download.gif");
2.The WebRequest class is a bit a raw , since it is often used to retrieve
web content as stream(such as search engine or web spider). We can use the
WebRequest together with the Image class to download a remote image. For
example:
WebRequest wr = WebRequest.Create(url);
Image img = Image.FromStream(wr.GetResponse().GetResponseStream());
img.Save("mydownload.gif");
Hope these help. thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)