You cant use CFoutput with binary data. read this blog by Christian Cantrell it runs on CFMX only though.
http://www.markme.com/cantrell/archives/002658.cfm
Thx GC
At 20:00 22/03/2004 +1100, you wrote:
You could do something like this...
<!--- pass in file name from URL or load via ID from database ---> <cffile action="readbinary" file="#filePath##fileName#" variable="myfile" >
<cfheader name="Content-Type" type="bad/type" >
<cfheader name="Content-Disposition" value="attachment; fileName=#fileName#" ><cfoutput>#myfile#</cfoutput>
or maybe just
<cfcontent type="bad/type" file="#filePath##myFile#" >
might do the job too...
Pat
"Armstrong Steven" <<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> wrote in message <news:[EMAIL PROTECTED]>news:[EMAIL PROTECTED]
Hey All,
I have a webpage with a series of thumbnails where I would like the user to be able to download an image when it is clicked on (rather than open the image in a new browser window).
Any ideas or suggestions would be greatly appreciated.
Thanks,
Steve
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
