Can you CFHTTP/CFFILE binaries?

I'm trying to write a page that will go out and grab an image off a web
page. I thought I could just CFHTTP(get) the image and dump it into a
CFFILE, but that didn't work. It seems to only save the GIF89a header,
but not the actual image.

Any ideas? Here's the code i tried:

<cfhttp method="GET" url="http://#thisURL#"></cfhttp>
<CFFILE ACTION="Write" FILE="c:\image101.gif"
OUTPUT=#CFHTTP.FileContent#>

-mike

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to