My Oracle Support Banner

How To Extract BLOB Data To JSON PL/SQL (Doc ID 2912441.1)

Last updated on APRIL 17, 2023

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


How to extract data in a BLOB object into JSON formatted data using a trigger.

In the 12c database, this task was done using UTL_RAW.CAST_TO_VARCHAR2. The trigger is on the table that contains this BLOB field, but in 19c a JSON ERROR is raised.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.