ADSFile2Blob()

Save a Binary file to a field

Syntax

ADSFile2Blob(cFileName, cFieldName, <nBinaryType>) --> lSuccess

Arguments

<cFileName> File to read. Can be in UNC format. A common example is an image file.

<cFieldName> Field in the current workarea to contain the binary data.

<nBinaryType> Either ADS_BINARY (the default) or ADS_IMAGE. This parameter is for fields in DBF files. ADT tables cannot store binary and image data in standard character memo fields (they have specific field types for that).

Returns

<lSuccess> True if the file is successfully written.

Description

See ACE.HLP for full details about the Advantage Database Server. ADSFile2Blob() is a wrapper for AdsFileToBinary. Use of this function is illegal in an ADS transaction.

Status

Ready

Compliance

Harbour extension

Platforms

Windows 32-bit only

Files

Library is RddAds Header is ads.ch

See Also