DECLARE v_success BOOLEAN; v_server_file VARCHAR2(250) := '/u01/reports/invoice_123.pdf'; v_client_file VARCHAR2(250) := 'C:\temp\invoice.pdf'; BEGIN -- Perform the download v_success := WEBUTIL_FILE_TRANSFER.AS_To_Client( clientFile => v_client_file, serverFile => v_server_file ); IF v_success THEN MESSAGE('Download complete.'); ELSE MESSAGE('Download failed - check WUT-118 logs.'); END IF; END; Use code with caution. Comparison of WebUtil Transfer Methods
Depending on your source, you may need a different function: Destination Typical Use Case Application Server Client Machine Downloading generated reports or logs. DB_To_Client Database (BLOB) Client Machine Retrieving stored attachments/images. URL_To_Client Client Machine Downloading from external web resources. Advanced Troubleshooting wut-118 webutil_file_transfer. download
: Ensure the file path provided to the serverFile parameter is absolute and that the WebLogic Server (or OAS) process has operating system-level read permissions for that directory. Example: Downloading from Server to Client
: WebUtil cannot transfer files that have a size of 0 bytes; doing so will trigger this specific error code. Example: Downloading from Server to Client DECLARE v_success BOOLEAN