Sign in Join
FPDoc Onlineexperiment

DecodeStringBase64 function

In unit Base64

Decodes a Base64 encoded string and returns the decoded data as a string.

Declaration

pascal
function DecodeStringBase64(const s: AnsiString; strict: Boolean=False)
: AnsiString

Arguments

s

The base64 encoded string to decode.

strict

Choose between strict base64 decoding or MIME decoding.

Function result

The base64 decoded version of S.

Description

DecodeStringBase64 decodes the string s (containing Base 64 encoded data) returns the decoded data as a string. It uses a TBase64DecodingStream to do this. The Strict parameter is passed on to the constructor as bdmStrict or bdmMIME

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.