Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

sample download link on file stored in blob column in database table

marian_manFeb 1 2017 — edited Feb 3 2017

Hi,

I would like to create a 'Download Link' on a file that is stored as BLOB in a database table.

I know that there is a sample app  'Sample File Upload and Download'.

On Page12, there is a P12_DOWNLOAD_LINK, and it has Settings | Based On > Output of PL/SQL Code:

begin

  sys.htp.p('<a href="' || apex_util.get_blob_file_src('P12_FILE_BLOB',:P12_ID,:P12_PROJECT_ID) || '">'||apex_escape.html(:P12_FILENAME)||'</a>');

end;

that is quite straightforward, but How to actually get the BLOB into P12_FILE_BLOB page item?

unfortunately P12_FILE_BLOB item has some very complex configuration.

How can I achieve this with some simple SELECT statement? (or perhaps PL/SQL)

thank you

This post has been answered by K4E on Feb 1 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2017
Added on Feb 1 2017
6 comments
3,967 views