<!--- Store the text you want to stream. This could be done here, or it could be gotten from a different part of the application. ---> <cfsavecontent variable="strText"> This is some cool text. </cfsavecontent> <!--- Set the header info to force that file attachment. ---> <cfheader name="Content-Disposition" value="attachment; filename=streamed_text.txt" /> <!--- Stream the text. To do so, we have to convert it to Base64 first, then convert that to binary. ---> <cfcontent type="text/plain" reset="true" variable="#ToBinary( ToBase64( strText ) )#" />