My examples were regarding hotlinking, but the issue is the same... Grab the
image URL as a binary return object... Then you can either save it
yourself... Or even better yet perhaps, you can use the FILE attribute of
CFHttp and have it save the binary response for you??

<cfhttp 
        url="http://static.flickr.com/84/221928348_bfcf7fe4cd.jpg?v=0"; 
        method="GET" 
        useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2" 
        getasbinary="yes"
        result="objGrab">

<cffile 
        action="WRITE" 
        file="#ExpandPath( './test_girl.jpg' )#" 
        output="#objGrab.FileContent#" 
        addnewline="false" 
        fixnewline="false"
        />
        
<cfdump var="#objGrab#" /> 


.......................
Ben Nadel 
www.bennadel.com

-----Original Message-----
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 22, 2006 5:46 PM
To: CF-Talk
Subject: Re: grabbing remote images

Yep...as I suspected Ben...your examples are for hot linking only and do not
provide me with a local copy of the image file.

That said....nice workaround with the referrer params!

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250666
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to