Delphi Binary Data

This post shows some code snippets for getting data from Delphi Byte arrays (TBytes) and TMemoryStream’s in and out of Chilkat. First, here are some code snippets to convert from a TMemoryStream to a byte array, and back. Delphi TBytes to TMemoryStream var iStream: TMemoryStream; b: TBytes; OpFile: String; numBytes: Cardinal; begin // Load a file into bytes OpFile := […]