Use CFHTTP to save the file directly:
<cfhttp url="http://www.someserver.com/images/someimage.gif" method="GET"
path="c:\" file="myfile.gif" resolveurl="false">
DC
----- Original Message -----
From: "Mike Amburn" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, April 10, 2001 09:10
Subject: CFHTTP binaries?
> 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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists