Skip to Content

Base64 decode in ABSL

May 02, 2017 at 08:12 PM


avatar image
Former Member

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,


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member May 03, 2017 at 07:31 AM

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.

10 |10000 characters needed characters left characters exceeded