PL/SQL Packages and Types Reference 10g Release 1 (10.1) Part Number B10802-01 |
|
|
View PDF |
The WPG_DOCLOAD
package provides an interface to download files, BLOB
s and BFILE
s.
The chapter contains the following topics:
The NAME
column in your document table must be the same as the value of name_col_len
.
name_col_len CONSTANT pls_integer := 64;
The MIME_TYPE
column in your document table must be the same as the value of mimet_col_len
.
mimet_col_len CONSTANT pls_integer := 48;
The name length of your document table must be less than max_doctable_name_len
.
max_doctable_name_len CONSTANT pls_integer := 256;
Subprogram | Description |
---|---|
Downloads files, |
There are three versions of this procedure:
p_filename
is to be downloaded from the document table to the client's browser.p_blob
is to be downloaded to the client's browser.p_bfile
is to be downloaded to the client's browser.WPG_DOCLOAD.DOWNLOAD_FILE( p_filename IN VARCHAR2, p_bcaching IN BOOLEAN DEFAULT TRUE);
WPG_DOCLOAD.DOWNLOAD_FILE( p_blob IN OUT NOCOPY BLOB); WPG_DOCLOAD.DOWNLOAD_FILE( p_bfile IN OUT BFILE);
Parameter | Description |
---|---|
|
The file to download from the document table. |
|
The |
|
The |
|
Whether browser caching is enabled (see Usage Notes). |
p_bcaching
parameter should be set to FALSE to indicate to the gateway to ignore the 'If-Modified-Since' header, and download the document.p_bfile
and p_blob
are declared as IN
OUT
because the locator is initially opened to check for file accessibility and existence. The open operation can only be performed if the locator is writable and readable.