I have a script that goes through an XML document and retrieves the URLs of images, and continues to load them using CFHTTP as follows:
<cfhttp method="get" url="#qTempImageData.url#" result="oHttp"> <cfhttpparam type="CGI" name="http_referer" value="http://www.realestate.com.au" encoded="false" /> </cfhttp> <cfimage action="write" destination="#APPLICATION.vTempPath#properties\#ListLast(qTempImageData.url, '/')#" source="#oHttp.FileContent.toByteArray()#" overwrite="yes" />
The problem occurs when the URL variable "qTempImageData.url" is something that does not end in the image extension, for example .png or .jpg ... for example:
http:
This URL serves to display the image, and you can see that the image exists, but I can not track it to any URL that the file itself will host, and thus download it, as usual, using the above CFHTTP commands ...
Is there any way to account for โservedโ images like what is specified in the URL variable?
~ Eliseo
source share