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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top