Advantage TDataSet Descendant
Retrieves the length of the specified binary object in the given fields of the current record.
function AdsGetBinaryLength( strFieldName : String ) : Longint;
|
strFieldName |
Name of the field containing the binary object. |
CAUTION It is recommended that this Advantage extended method not be used. Please read the Caution About Extended Methods for more information. The suggested native Delphi method to use instead is: TStream.Size. See your Delphi documentation for more information about this native Delphi method.
AdsGetBinaryLength can be used to determine the amount of memory or disk resources needed to manipulate a binary object. Return value is the length of the binary object.
{ note that oStream is a TStream object )
oStream := AdsTable1.CreateBlobStream( FieldByName( ‘LastName‘, bmReadWrite );
ulBytes := oStream.Size;