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!

Download File from Directory

Jeff EJan 18 2007 — edited Jan 19 2007

Is there an easy way to have a stored procedure download a file from an oracle directory.

I create a directory like so:

create or replace directory MY_DIR as '/tmp'
/

I place a file in it: data.csv

I have a button on a page with a link target of url and a url like: #OWNER#.download_csv('data.csv')

I have tried to use the howto on uploading and downloading files as a guide. But I'm trying to avoid having to create a table to first upload my file into before downloading.

Any ideas?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2007
Added on Jan 18 2007
13 comments
2,249 views