The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Mohammad.
Asked: October 11, 2024 - 12:31 pm UTC
Last updated: October 28, 2024 - 5:07 am UTC
Version: Oracle Apex 24.1
Viewed 1000+ times
declare l_file bfile := bfilename('MYDIR','myfilename'); l_length number := dbms_lob.getlength(l_file); begin sys.htp.init(); sys.owa_util.mime_header( 'application/octet', false ); sys.htp.p('Content-Length: ' || l_length); sys.htp.p('Content-Disposition: attachment; filename="' || l_name || '"; filename*=UTF-8''''' || l_name); sys.owa_util.http_header_close; sys.wpg_docload.download_file(l_file); apex_application.stop_apex_engine; end;
Complete documentation on Securefiles and Large Objects here