|
file_download procedure |
|
Contained in package wwa_app_module. Call this procedure to display a form component item of type 'File Upload (Binary)/ File Upload (Intermedia)'. If a form component is based on a table with column(s) such as BLOB/ ORDSYS.ORDIMAGE/ ORDSYS.ORDAUDIO/ORDSYS.ORDVIDEO, by default, the corresponding item types are File Upload (Binary) /File Upload (Intermedia). There would be procedures such as upload_x and download_x in the generated package (where x=1,2,3,4,5...depending on the number of BLOB/Intermedia columns) that uploads and downloads the Intermedia/BLOB content. When a query operation is performed, the results display a download link (or an image if the mime type has been set to an image type). This procedure is invoked when you click the download link, which in turn invokes one of the download_x procedures to perform the actual download. procedure file_download |
|
Version: Oracle Portal 3.0.9 |
|
|
Parameters: |
|
|
p_id |
The session ID. Note: This parameter is available in Oracle9iAS Portal 9.0.2 or later. Datatype: integer |
|
p_block |
The form block to which the form element of type File Upload (Binary)/File Upload (Intermedia) belongs. Datatype: varchar2 |
|
p_object |
The form element name of type File Upload (Binary)/ File Upload (Intermedia). Datatype: varchar2 |
|
p_source |
The ROWID of the row from which the BLOB/INTERMEDIA column is to be fetched. Datatype: varchar2 |
|
Exceptions: None. Example: Example applicable for Oracle9iAS Portal 9.0.2 or later. Consider
a form component based on a table named table_of_songs (id number, audio
ORDSYS.ORDAUDIO). This form component has an item named 'AUDIO' which
when run, uploads a .wav or .mp3 file. declare Note: For this code example to work it must be written in the 'Additional PL/SQL' section named 'after displaying the page'. |
|
|
The PL/SQL API Reference is part of the Portal Developer Kit on Portal Studio |