void GetImage()
{
System.Net.WebRequest request =
System.Net.WebRequest.Create("http://www.microsoft.com/homepage/gif/bnr-micr
osoft.gif");
System.Net.WebResponse response = request.GetResponse();
System.Drawing.Bitmap bmp = new
System.Drawing.Bitmap(response.GetResponseStream() );
bmp.Save("c:\\msft.gif", System.Drawing.Imaging.ImageFormat.Gif);
bmp.Dispose();
response.Close();
}
-vJ
"Duncan Winn" <te**@test1.co.uk> wrote in message
news:uY**************@TK2MSFTNGP10.phx.gbl...
Thanks, that worked, although I am a bit unsure of what to do next?
i.e. How do I construct and post a request
and process the response appropriately.
In order to copy a jpg from a wec page?