turns out that this is how you can do it...
although i couldnt find it anywhere within 3 books or any of the online help
(v4.5).
thanks for all the help and suggestions
<cfhttp method="get" url="http://www.lexus.com/images/home/mn_ph_sc_top.jpg"
path="c:\images\cars\" file="myfile.jpg"></cfhttp>
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, March 22, 2001 1:05 PM
Subject: retrieve remote images using cfhttp?
> i have been trying for the better part of the morning to figure out where
i am going wrong with the CFHTTP tag.
> i get a list of about 200 cars two times a week and the majority have
photos (with full url to other sites) but cant seem to figure out how to get
CFHTTP to download an image off of a remote site and save it locally to my
hard drive.
>
> suggestions? ideas? help???!!!
>
> here is my non-functional code so far... the header seems to return the
right info, and the mime type is also correct, but the filecontent makes no
sense to me whatsoever and i am unsure if i am doing this right, or if it is
even possible with the CFHTTP tag, or if i should be using some other tag,
or if i should be using something from the allaire developer exchange.
>
> <cfhttp method="GET"
url="http://www.lexus.com/images/home/mn_ph_sc_top.jpg"></cfhttp>
> <cfoutput>
> <hr>
> #cfhttp.header#
> <hr>
> #cfhttp.filecontent#
> </cfoutput>
>
>
> thanks in advance.
> peter
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists