Reputation: 2879
How do i return below encoded result to char
SELECT utl_encode.base64_encode(utl_raw.cast_to_raw('some_text')) COLM FROM DUAL;
I have tried
SELECT TO_CHAR(utl_encode.base64_encode(utl_raw.cast_to_raw('some_text'))) COLM FROM DUAL;
-- I get error: SQL Error [932] [42000]: ORA-00932: inconsistent datatypes: expected NUMBER got BINARY
Reason why i need it in char/text is because i find it difficult to copy the result from dbeaver since dbeaver recognizes the result as an encrypted data hence encrypts it further or exports empty result.
Upvotes: 0
Views: 2345