I'm trying to save an image using CF. Here is my code. It should be working although it says that CFFILE action=write is for text files. However, once I run this in a browser, cfhttp.filecontent seems to only have 4 bytes of data. And it's not an image.
What am I doing wrong? Russ <cfhttp url="http://www.x-deals.com/bar.jpg" method="GET" useragent="Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+6)" throwonerror="Yes" timeout="20" redirect="Yes"> <cfoutput> <pre> #cfhttp.mimeType# #cfhttp.header# #cfhttp.statuscode# #Len(cfhttp.fileContent)# #cfhttp.fileContent# </pre> </cfoutput> <cffile action="WRITE" file="f:\poly\1.jpg" output ="#cfhttp.filecontent#"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm

