cancel
Showing results for 
Search instead for 
Did you mean: 

Base64 decode in ABSL

05-02-2017 10:12 PM
2412 views 1 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hello experts,

I need to decode a Base64 encoded String within an ABSL-script. I have checked already all built-in functions of BinaryObject/Binary and also the functions available in reuse library 'Binary' but was not able to find something which supports Base64 decoding.

Did I overlook anything obvious or is it as tricky as it seems to be?

Thank you in advance for any helpful hint.

Best regards,

Eugen

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Here is how it works:

var base64EncodedString = "RXVnZW4gRG9qYW4="; // Base64-encoded value of String "Eugen Dojan"
var binary = Library::Binary.ParseFromBase64String( base64EncodedString );
var decodedString = binary.ToString();

So in fact very simple because the ToString() function of Binary does an implict base64 decoding.

Answers (0)