Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

encrypt pdf with DBMS_CRYPTO.ENCRYPT error ORA-06502

hi,

this is my code for encrypt my file but console show this error: ORA-06502

DECLARE
	myblob BLOB;
    l_blob BLOB;
    v_encrypted_blob BLOB;
    v_key RAW(32);
BEGIN
    INTO myblob
    FROM apex_application_temp_files
    WHERE NAME = :P41_FILE_NAME_ORIGINAL; 
    
    v_key := DBMS_CRYPTO.RANDOMBYTES(32);
    
    v_encrypted_blob := DBMS_CRYPTO.ENCRYPT(
        src => l_blob,
        typ => DBMS_CRYPTO.ENCRYPT_AES256 + DBMS_CRYPTO.CHAIN_ECB,
        key => v_key
    );    
END;
Comments
Post Details
Added on Jun 3 2024
2 comments
206 views