Forum OpenACS Q&A: Response to BLOB in HTML

Collapse
2: Response to BLOB in HTML (response to 1)
Posted by Tilmann Singer on
Try this in a .tcl file (without an .adp file):

ReturnHeaders $mime_type

db_write_blob write_content {
  select content from cr_revisions where revision_id=:revision_id
}