I am currently working on a custom SAPUI5 app. I would like to make a service call, which expects the Guid in a different format than it is currently available.
An example:
- Available (base64):
QvLAUUzUCZbhAAAAjSS2iA==
- As it should be (hexadecimal):
42F2C0514CD40996E10000008D24B688
I have not found an online decoder, which could produce the desired result, however, I was able to encode the guid 42F2C0514CD40996E10000008D24B
to QvLAUUzUCZbhAAAAjss2iA==
with the SAP ABAP standard function module HTTP_BASE64_ENCODE
. With the usual online encoders, however, I got a different result.
How can I decode the encoded guid with JavaScript so that it has the desired format?