VB.NET
Dim wc As New System.Net.WebClient()
wc.DownloadFile("http://localhost/image.gif", "c:\test\1.gif")
wc.Dispose()
C#System.Net.WebClient wc = new System.Net.WebClient();
wc.DownloadFile("http://localhost/image.gif", @"c:\test\1.gif");
wc.Dispose();