Good Morning CF Aussies,

Thank you for your contributions, they all helped.

After playing with the code that was provided, I have found that this
code has worked for me.

 <cfheader name="content-disposition" value="attachment;
filename=#url.filetitle#.jpg">
 <cfcontent type="image/jpeg"
file="D:\sites\devsite\wwwroot\images\#url.filename#">

Thanks again,

Steve Armstrong







-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of G A R Y C
R O U C H [ A I T ]
Sent: Monday, 22 March 2004 9:18 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Image Download


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



---
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

Reply via email to