I am trying to extract a BLOB variable using the below Query.
select utl_raw.cast_to_varchar2(BLOB_VAR) from Dual
However I am getting an error.
ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 4060, maximum: 2000)
Can you please let if it is possible extract the BLOB value greater than 4000 chars as the limit of varchar2 is 4000.
I tried to use concat option
select concat(concat(utl_raw.cast_to_varchar2(dbms_lob.substr(BYTES_,2000,1)),utl_raw.cast_to_varchar2(dbms_lob.substr(BYTES_,2000,2001))),utl_raw.cast_to_varchar2(dbms_lob.substr(BYTES_,2000,4001)))from ACT
But I get this error
01489. 00000 - result of string concatenation is too long```
Is there any way to get a longer string value?