54.11 GENERATE_REQUEST_BODY Function
This function generates the multipart/form-data request body from the data in the t_multiparts
array.
Syntax
APEX_WEB_SERVICE.GENERATE_REQUEST_BODY(
p_multipart IN t_multipart_parts,
p_to_charset IN VARCHAR2 DEFAULT wwv_flow_lang.get_db_charset )
RETURN BLOB;
Parameters
Parameter | Description |
---|---|
p_multipart |
The table type for the multipart/request body, t_multipart_parts. |
p_to_charset |
The target character set for the parts that are CLOBs. This parameter defaults to the current character set of the database. |
Examples
This example stores the multipart/form request in a local BLOB variable.
DECLARE
l_multipart apex_web_service.t_multipart_parts;
l_request_blob blob;
BEGIN
l_request_blob := apex_web_service.generate_request_body (
p_multipart => l_multipart );
END;
Parent topic: APEX_WEB_SERVICE