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
Post a Comment