Getting Image File Information

S0RD3N
02-11-2005, 08:44 PM
I'm back with more interesting questions! :huh: :p

I have a webbrowser control navigating to a certain image in my program. I then click & drag this image into a Rich Text Box control. So there I have my image in the browser and in the RTB. Now the tough question: How do I figure out where the image's located on the internet?. I hope this is possible, if not is there any work-arounds into getting the file's location on the internet?

Thanks in advanced!
~S0RD3N

Squishy
02-11-2005, 09:25 PM
If you're navigating to the image in the webbrowser, wouldn't the path be stored in the LocationURL property?

S0RD3N
02-11-2005, 10:04 PM
Well see, I guess I should have said that I'm really navigating to a .html page with the image on it....

Squishy
02-11-2005, 10:14 PM
Is there always a single image on the webpage? If so, you could search the HTML for an occurence of "src=" after an "<img" tag.

S0RD3N
02-11-2005, 10:20 PM
Well I did think about doing that but I'm going to have a lot of images on the html page. so I guess it -would- work if I could get the image's file name out of it in the RTB but I'm not sure if that's possible...

S0RD3N
02-12-2005, 09:40 AM
so can you get an image's original name & format from a copied image from the internet?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum