August 3rd, 2012, 02:54 AM
Delphi 7 - Decode Base64 String to Byte Array
I am making a builder/stub application. The builder is coded in XE2 while the stub is coded in Delphi 7.
In XE2 when I use "EncdDecd" it has functions to encode EncodeBase64 and DecodeBase64... But in Delphi 7 when I use EncdDecd it does not have the DecodeBase64 function that I need..
In my builder I am loading a file into a stream and encoding it to a B64 AnsiString and adding it to the resources of the stub. The goal is to have the stub decode this B64 AnsiString into a byte array and ultimately write it to a file on the disk.
Thanks for any help.