Ruslan, Actually there is a file save attribute on the <cfhttp> tag itself.
<cfhttp file="blah.jpg" path="e:\someabsolutepath\" url="http://www.getme.com"></cfhttp> Browse to the file it creates - it should be in it's correct native format. <cffile> won't work in the manner you are trying. -Mark -----Original Message----- From: Ruslan Sivak [mailto:xrussx@;verizon.net] Sent: Monday, November 11, 2002 11:13 PM To: CF-Talk Subject: CFHTTP, CFFILE and JPG files 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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

