16.6 Previewing BLOB Column PDF Files Inline

To preview a PDF file stored in a BLOB column, use an iframe.

This HTML tag lets you include one page's contents as part of another page. To simplify setup, create a template component that lets developers just set the URL of the file to preview. Combine this with a page that downloads the PDF file inline. To finish the job, adjust your application's Embed in Frames browser security setting to allow embedding a frame from the same domain.