Home > APEX_UTIL > GET_FILE Procedure
This procedure downloads files from the Oracle Application Express file repository.
Syntax
APEX_UTIL.GET_FILE ( p_file_id IN VARCHAR2, p_mime_type IN VARCHAR2 DEFAULT NULL, p_inline IN VARCHAR2 DEFAULT 'NO');
Parameters
Table: GET_FILE Parameters describes the parameters available in GET_FILE
procedure.
GET_FILE Parameters
Parameter | Description |
---|---|
|
ID in DECLARE l_file_id NUMBER; BEGIN SELECT id INTO l_file_id FROM APEX_APPLICATION_FILES WHERE filename = 'myxml'; -- APEX_UTIL.GET_FILE( p_file_id => l_file_id, p_mime_type => 'text/xml', p_inline => 'YES'); END; |
|
Mime type of the file to download |
|
Valid values include |
Example
BEGIN APEX_UTIL.GET_FILE( p_file_id => '8675309', p_mime_type => 'text/xml', p_inline => 'YES'); END;