WebBase64DecodeEx function

Action

Converts ASCII-encoded data into unsigned binary data.

Include file

WebAPI.bdh

Syntax

WebBase64DecodeEx( out   sTarget : string,
                   in    sSource : string ): boolean;

Return value

  • true if the decoding was successful

  • false otherwise

Parameter Description
sTarget String variable to receive the decoded data.
sSource Source string to decode.

Example

transaction TWeb
  var
    sEncoded : string;
    sDecoded : string;
  begin
    WebBase64EncodeEx(sEncoded, "Hallo");
    WebBase64DecodeEx(sDecoded, sEncoded);
    print(sEncoded);
    print(sDecoded);
  end TWeb;