45.8 APPEND_TO_MULTIPART Procedure Signature 2
Use this procedure to add a CLOB to a multipart/form request body.
Syntax
APEX_WEB_SERVICE.APPEND_TO_MULTIPART (
p_multipart IN OUT NOCOPY t_multipart_parts,
p_name IN VARCHAR2,
p_filename IN VARCHAR2 DEFAULT NULL,
p_content_type IN VARCHAR2 DEFAULT 'application/octet-stream',
p_body IN CLOB );
Parameters
Table 45-2 APPEND_TO_MULTIPART Parameters
Parameter | Description |
---|---|
|
The table type for the multipart/request body, t_multipart_parts. |
|
The name of the multipart data. |
|
The filename of the multipart data if it exists. |
|
The content type of the multipart data. |
|
The content to add in CLOB. |
Example
DECLARE
l_multipart apex_web_service.t_multipart_parts;
BEGIN
apex_web_service.append (
p_multipart => l_multipart,
p_name => 'param1',
p_content_type => 'application/json',
p_body => '{"hello":"world"}' );
END;
Parent topic: APEX_WEB_SERVICE