Skip to Content

Base64 decode in ABSL

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    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.

    Add comment
    10|10000 characters needed characters exceeded