I have created the following function in Oracle to convert my string to BASE64 and I am getting a new line after 64 characters. The function is as below
function to_base64(t in varchar2) return varchar2 is
begin
return utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw(t)));
end to_base64;
My input is tobase64('ACae23b41949dbcfa8cd2c8b114bb81af4:909f2edb3e9b8c7e9c545d2942aa8576')
and output I am getting is as follows where new line is added after 64 characters.
QUNhZTIzYjQxOTQ5ZGJjZmE4Y2QyYzhiMTE0YmI4MWFmNDo5MDlmMmVkYjNlOWI4
YzdlOWM1NDVkMjk0MmFhODU3Ng==
Can someone suggest how can I remove the new line or any change required in the function?