I have some large binary content in hex form stored in a CLOB and want to convert that to a BLOB where the hex code is actual binary byte encoding:
DECLARE
-- This would be my 8 byte hex-encoded binary content. Real content is much bigger
c CLOB := 'cafebabe12345678';
b BLOB;
BEGIN
-- Need the implementation of this function
b := hex_to_blob(c);
END;
/
What's the easiest way to do that in Oracle, using PL/SQL?