FetchBlobBytes

Class: TMMScript

function FetchBlobBytes(
           const ATableName, 
           AColumnName: string;
           APKParams: TJSONArray;
           out AData: TBytes;
           out AIsBinary: Boolean;
           out AIsNull: Boolean): Boolean;

Downloads a single BLOB or CLOB column value into a raw byte array.
The lower-level counterpart to FetchBlob; use this when you need to process the bytes programmatically before writing to a field or file.

Parameter Meaning
ATableName Source table on the remote server
AColumnName Source column; use Columns[I].SourceName
APKParams TJSONArray of {col, val} pairs; obtain via BuildPKParams
AData Receives the raw bytes on success; empty when AIsNull = True
AIsBinary True when the column is a binary type (BLOB/BINARY/VARBINARY/BIT)
AIsNull True when the server value is SQL NULL; AData is empty

Returns True on success (including NULL values).

See Also

(C) 2026 Easygate, Lda