If you haven't used ColdFusion's CFContent tag to stream data to the browser, either as an inline object, or as an attachment, you should at least test it out. It's a really great feature of ColdFusion and really gives you some good control with CFHeader over how the data gets used by the end user. The Variable attribute of CFContent only takes binary objects such as binary graphic data. The user in question, however, did not want to store the text to a temp file but wanted to stream it using Variable. The question then becomes, how to get the text to fit into a binary hole? The answer?
|Published (Last):||9 May 2009|
|PDF File Size:||9.71 Mb|
|ePub File Size:||14.29 Mb|
|Price:||Free* [*Free Regsitration Required]|
Viewed 2k times. I have following ColdFusion code to open the file with Excel format. QueryName - Request. Leigh Active Oldest Votes. You need to set the content type as vnd. Anit Kumar Anit Kumar 1, 8 8 silver badges 14 14 bronze badges.
Subscribe to RSS
Data output tags. You can specify this tag's attributes in an attributeCollection attribute whose value is a structure. Specify the structure name in the attributeCollection attribute and use the tag's attribute names as structure keys. Now, ColdFusion attempts to get the content type from the file. Name of an on-disk or in-memory file whose contents provide the page output. The filename must start with a drive letter and a colon, or a forward or backward slash. When using ColdFusion in a distributed configuration, the file attribute must refer to a path on the system on which the web server runs.
Streaming Text Using ColdFusion's CFContent Tag And The Variable Attribute