You can use the attributes file and path to save the file on the server.
Read the help for cfhttp.

Pascal

-----Original Message-----
From: James Smith [mailto:[EMAIL PROTECTED]] 
Sent: woensdag 17 juli 2002 16:02
To: CF-Talk
Subject: saving a retrieved graphic.


OK, here is the thing.

I need to be able to retrieve a graphic (a graph in fact) from a website
and save it locally so for the rest of the day the CF Box doesn't keep
trying to re-fetch the graph and waste our bandwidth.

I can use cfhttp to retrieve the file but I can't figure out how to save
it to disk <CFHTTP resolveurl="No" method="GET"
url="http://www.domain.com/graph.gif";></CFHTTP>

I know someone will suggest using <img
src="http://www.domain.com/graph.gif";> but that simply wont do, the
graphic MUST be saved locally.

Is there an easy way to do this, have I missed something I really should
know?

--
Jay
[EMAIL PROTECTED]

"Computer games don't affect kids, I mean if Pac Man affected us as
kids, we'd all be running around in darkened rooms, munching pills and
listening to repetitive music..."



______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to