Base64ToStr

From SCAR Divi Manual
Jump to: navigation, search

Definition

function Base64ToStr(const Str: AnsiString): AnsiString;

Availability

SCAR Divi 3.31 > Current

Description

Decodes a given string Str from base64 format to a regular string. If the input string was not in hexadecimal format, the function returns an empty string. The entered string is case-sensitive. This process can be reversed with StrToBase64.

Example

begin
  WriteLn(Base64ToStr('SGVsbG8gV29ybGQh'));
end.

Output:

Hello World!

See Also