There are 3 steps that I see in creating something to do this. The first step would be to retrieve the web page which you can do via <cfhttp>. This will return the html page in a string (#cfhttp.fileContent#). The next step would be to parse through this string looking for references to images. Each time you find one that you want to retrieve, you'll need to extract the image url and either store it for retrieval later or download it immediately. This step will require a lot of string manipulation and you'll need to be familiar with the common string functions such as mid(),instr(),findnocase(),etc.. The last step would be the download of the images. I've never tried to do this with CF but you should be able to use the <cfhttp> tag again and just specify the image url. Once downloaded, you should be able to use <cffile> to write the image out using #cfhttp.fileContent# as the ouput for <cffile>.
This isn't a simple application but can certainly be done.
Good luck and let me know if you get stuck anywhere,
GJ
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.