Better yet:

<cfhttp url="http://www.google.co.uk/intl/en_uk/images/logo.gif";
        getasbinary="yes"
        path="C:\DIRECTORYTOSAVEIMAGEIN"
        ></cfhttp>

There is also a file attribute if you want to specify the file, but if you just 
want it to be the same filename as the one you GET, then leave it off (like I 
did above).  Otherwise, specify the file attribute with the new filename.

Obviously, you can replace the path above with any path available to your 
server.

Dave

-----Original Message-----
From: Kerry [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 07, 2005 12:35 PM
To: CF-Talk
Subject: RE: JPG-scraping... brainfart


<cfhttp url="http://www.google.co.uk/intl/en_uk/images/logo.gif";
getasbinary="yes"></cfhttp>
<cffile action="write"
file="#getDirectoryfromPath(getCurrentTemplatepath())#test.gif"
output="#cfhttp.FileContent#">
<img src="test.gif">
******************************************************************************************
The information contained in this message, including attachments, may contain 
privileged or confidential information that is intended to be delivered only to 
the 
person identified above. If you are not the intended recipient, or the person 
responsible for delivering this message to the intended recipient, ALLTEL 
requests 
that you immediately notify the sender and asks that you do not read the 
message or its 
attachments, and that you delete them without copying or sending them to anyone 
else. 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217543
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to