Ask Your Question
2

How do I send a single large CLOB through a restful service in Oracle APEX?

asked 2023-05-08 12:09:09 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-08 12:31:02 +0000

bukephalos gravatar image

To send a single large CLOB through a RESTful service in Oracle APEX, you can follow these steps:

  1. Create a RESTful service in Oracle APEX that accepts a POST request.
  2. In the POST request body, include the CLOB value as a string.
  3. In the service processing code, convert the string to a CLOB using the TO_CLOB function.
  4. Insert the CLOB value into the database or process it as required by your use case.

Here's some sample code for the service processing:

DECLARE
    l_clob CLOB;
BEGIN
    l_clob := TO_CLOB(:body);
    -- Do something with the CLOB, such as insert it into a table
END;

Note that there are some limitations to sending large CLOBs through RESTful services, such as the maximum payload size and potential performance issues. You may want to consider a different approach, such as splitting the CLOB into smaller chunks or using a file upload instead.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-08 12:09:09 +0000

Seen: 11 times

Last updated: May 08 '23