Encode base64 and Decode base64 using delphi 2007
I have to encode an array of bytes to a base64 string (and decode this string) on an old Delphi 2007. How could I do? Further Informations: I've tried synapse (As suggested here Binary to Base64 (Delphi) ). Indy ships with Delphi, and has TIdEncoderMIME and TIdDecoderMIME classes for handling base64. For example: uses ..., IdCoder, IdCoderMIME; var Bytes: TIdBytes; Base64String: String; begin //... Bytes := ...; // array of bytes //... Base64String := TIdEncoderMIME.EncodeBytes(Bytes); //... Bytes := TIdDecoderMIME.DecodeBytes(Base64String); //... end; There are also methods for encoding