Forum OpenACS Development: Re: Writting a blob to a file and displaying it

Collapse
Posted by Don Baccus on
Why not use db_blob_get_file to write the file?

Here's an example from acs-content-repository/tcl/publish-procs.tcl:

    db_blob_get_file wmb_get_blob_file "
      select content from cr_revisions where revision_id = $revision_id
    " -file $filename
Then you can use an image tag to return the file.