Image | Audio | Video |
---|---|---|
X |
Returns a list of table entries in image columns that refer to a specified file. The application must be connected to a database before calling this API.
It is important that you free up the resources that are allocated by this API after calling it. Specifically, you must free up the filelist data structure as well as the filename field in each entry in the filelist.
Authorization
SELECT privilege on enabled image columns in all searched user tables and associated administrative support tables
Library file
OS/2 and Windows | AIX, HP-UX, and Solaris |
---|---|
dmbimage.lib | libdmbimage.a (AIX) |
| libdmbimage.sl (HP-UX) |
| libdmbimage.so (Solaris) |
Include file
dmbimage.h
Syntax
long DBiIsFileReferenced( char *tableName, char *fileName, long *count, FILEREF *(*tableList) );
Parameters
Error codes
Examples
List the entries in image columns of the employee table that refer to file /images/ajones.bmp:
#include <dmbimage.h> long idx; rc = DBiIsFileReferenced(NULL, "/images/ajones.bmp", &count, &tableList);