Download file created from BLOB (as opposed to opening in browser)


hello, everyone.

 

this project pushing me become acquainted lot of functions i've never worked with, before.

 

the question, time:

if have database table houses files (and these can pdf, txt, doc, xls, or ppt) , allow user download , save particular file (as opposed opening file in browser), how go doing that?

 

if file existed on server, that'd simple enough.  if it's being created on-the-fly via blob data??

 

v/r,

 

^_^

look @ cfheader , cfcontent tags.  can specify mime type of file have open in correct program on user's end.

 

for example, on pdf files this:

 

<cfheader name="content-disposition" value="inline; filename=""whatever.pdf""" />

<cfcontent type="application/pdf" variable="#your_blob_variable#" />

 

beware because settings (like opening in browser or not) controlled user's preferences particular software.  , different browsers behave differently (surprise).



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support