download images from web page using C# and CF?

  • Thread starter Thread starter news.austin.rr.com
  • Start date Start date
N

news.austin.rr.com

hi

I need to download images from a web page that i visit using the browser
control. How can I download images form the web page that the html
referrences? Can this be done in the CF?

thanks
 
Using the System.Net namespace, use the HttpWebRequest and put the
url to the image in there. The response stream will most likely need to be
the parameter to a BinaryReader which you can then spit out to a byte
array for eventually conversion to an image file.
 
Back
Top