base64 encode is not matching with Oracle's base64 encode
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 02:36 PM
Hi , base64 encode is not matching with Oracle's base64 encode. please see below result. Could anyone help me on this?
In Azure Databricks: encoded= base64.b64encode(b'952B8D04E5CFB9BE')
output is - b'OTUyQjhEMDRFNUNGQjlCRQ=='
In Oracle: select utl_encode.base64_encode('952B8D04E5CFB9BE') from dual;
output is - 6C53754E424F58507562343D
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 01:11 AM
Oracle handles base64 encoding a little bit differently.
Please check this link to understand what's the difference: