Hi All,

Does anyone here have an example of using CFHTTP to grab an image and save
it locally?

I tried this but no go:

<cfhttp url="http://?????/image.jpg"; method="GET" resolveurl="false">

<cffile action="WRITE" file="D:\images\myimg.jpg"
output="#ToBinary(ToBase64(cfhttp.fileContent))#">

Duane

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to