Delphi ActiveX Requires Chilkat v11.0.0+
Delphi ActiveX
Transition from Crypt2.Decode to BinData.AppendEncoded
Provides instructions for replacing deprecated Decode method calls with AppendEncoded.Chilkat Delphi ActiveX Downloads
var
success: Integer;
crypt2: TChilkatCrypt2;
byteData: Array of Byte;
encoding: WideString;
bd: TChilkatBinData;
begin
success := 0;
crypt2 := TChilkatCrypt2.Create(Self);
// ...
// ...
encoding := 'base64';
// ------------------------------------------------------------------------
// The Decode method is deprecated:
byteData := crypt2.Decode('ENCODED_DATA...',encoding);
// ------------------------------------------------------------------------
// Do the equivalent using BinData.AppendEncoded.
bd := TChilkatBinData.Create(Self);
success := bd.AppendEncoded('ENCODED_DATA...',encoding);
byteData := bd.GetData();