Hi Thaynann,
The FileStream class will not be able to download from a URL natively.
Probably the simplest way to do this would be something like the following:
string imageUrl = "http://www.google.com/intl/en/images/logo.gif";
byte[] imageData;
WebClient wc = new WebClient();
try
{
imageData = wc.DownloadData(imageUrl);
MemoryStream ms = new MemoryStream(imageData);
Bitmap b = new Bitmap(ms);
b.Save(@"c:\google.tiff", ImageFormat.Tiff);
}
catch(WebException)
{
//something went wrong during the download
}
Hope that helps
Mark R Dawson
http://www.markdawson.org
"Thaynann" wrote:
i have an appliation that, at this stage, uses the HttpWebRequest and
WebResponse objects to get a stream (as a string) on a page on a web site, i
wanted to know, after lookin through the string and grabing the url addresses
on images...ie
http://10.0.0.215/DH/repository/thum...27735501526516
is it possible to save these files as TIF images (on my PC), i have been
lookin through th Filestream classes and, to me, most appear to be set up to
write text based data to files and no save the URL of an image directly
Thanx in advance
Thaynann