Advantage Client Engine
Stores the contents of the given file as a binary object in the specified field.
UNSIGNED32 |
AdsFileToBinary (ADSHANDLE hTable, UNSIGNED8 *pucFldName, UNSIGNED16 usBinaryType, UNSIGNED8 *pucFileName); |
hTable (I) |
Handle of table or cursor. |
pucFldName (I) |
Name of field to update. |
usBinaryType (I) |
Indicates type of binary data. Values are ADS_IMAGE and ADS_BINARY. |
pucFileName (I) |
File from which to retrieve the binary object. |
The file to be opened must be in a path visible to the client. AdsFileToBinary can resolve DOS or UNC filenames for pucFileName. The binary object is copied in fragments that are as large as both the Advantage Database Server and underlying networks can accommodate.
This API can be used to store binary data in memo fields. If used this way, AdsGetMemoDataType can be called to determine the type of data stored in the memo field.