If I have the contents of a binary file in memory, is it necessary to 
dump those contents to a file in order to send it to the browser, or can 
I do something like this:

<cfset myImage = getMyImage()>
<cfheader name="Content-Disposition"
        value="attachment; filename=#myImage.name#">
<cfcontent type="#myImage.type#">
<cfoutput>#myImage.binaryData#</cfoutput>

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262477
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to