forked from mortenbra/alexandria-plsql-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencode_util_pkg.pks
More file actions
executable file
·37 lines (23 loc) · 920 Bytes
/
Copy pathencode_util_pkg.pks
File metadata and controls
executable file
·37 lines (23 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
create or replace package encode_util_pkg
as
/*
Purpose: Package contains utility functions related to encoding/decoding (of strings)
Remarks:
Who Date Description
------ ---------- --------------------------------
MBR 11.05.2011 Created
*/
-- encode string using base64
function str_to_base64 (p_str in varchar2) return varchar2;
-- encode clob using base64
function clob_to_base64 (p_clob in clob) return clob;
-- encode blob using base64
function blob_to_base64 (p_blob in blob) return clob;
-- decode base64-encoded string
function base64_to_str (p_str in varchar2) return varchar2;
-- decode base64-encoded clob
function base64_to_clob (p_clob in varchar2) return clob;
-- decode base64-encoded clob to blob
function base64_to_blob (p_clob in clob) return blob;
end encode_util_pkg;
/