downloading and saving an image <img> from html

N

news.austin.rr.com

If I have an HTML image tag <img src="images/button.gif" ... > and i resolve
the full path how can i download the image to save it locally? is this
posible in the CF with C#?

thank you
 
P

Peter Foot [MVP]

You can use the HttpWebRequest / HttpWebResponse classes to retrieve the
file at the given url. Get the response stream and copy the data into a file
using the System.IO.BinaryWriter

Peter
 

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

Top