Is there any function for encode/decode base 64 in Firebird? In SQL Server there are a technique using xml:
declare @source varbinary(max)=convert(varbinary(max),'AbdalrahmanIbnSewareddahab')
SELECT CAST('' AS XML).value('xs:base64Binary(sql:variable(''@source''))','VARCHAR(MAX)') as BASE64_ENCODED;
The result is QWJkYWxyYWhtYW5JYm5TZXdhcmVkZGFoYWI=
How can I do this in Firebird (2.5 or 3.0)?