function DecodeBase64(const S: String; Strict: Boolean): String
Декодирует строку BASE64.
Параметры:
S - строка в кодировке BASE64.
Strict - True - строгий режим, который соответствует RFC3548 и отклоняет любые символы вне алфавита BASE64. В этом режиме в конце можно использовать до двух символов =
. Для этого требуется, чтобы размер входных данных был кратен 4, в противном случае возникает исключение.
False - режим MIME, который соответствует RFC2045 и игнорирует любые символы за пределами алфавита BASE64. В этом режиме любой знак =
рассматривается как конец строки, он корректно обрабатывает явно усеченные входные потоки.