Assuming you're talking about using CFIMAGE to write the image to memory, the 
name attribute gives you the image back as a binary variable, which you can 
then include in the CFCONTENT variable:

<cfcontent type="image/*" variable="#cfimageVariableName#">

Ben Nadel did something similar with pulling a stream directly from the DB:

http://www.bennadel.com/blog/1274-Ask-Ben-Streaming-Binary-Data-From-The-Database-BLOB-To-The-User-Using-ColdFusion.htm

-jfish

> I am sure I am probably not the first person to want to do this but I 
> can't find the answer anywhere.
> 
> I am writing an image library and would like to do the following:
> - load the full size image using CFFILE
> - resize it
> - force it to download
> 
> I know I can force a download with cfheader/cfcontent but can I 
> combine that with cfimage, or will I need to save the file after 
> resizing, and then point to that one? Just trying to keep it tidy.
> 
> Thanks,
> Mark King
> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314110
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to