Store

_DB_StoreFile, DB_StoreFile, DB_StoreImage, DB_StoreImageEx

DB_StoreFile

Interactive command to this function: File > Save to Database

Description 

 DB_StoreFile(
   char *Database,
   char *Table,
   char *User,
   char *DB_ImageFile
);

This function stores an image file into the selected database table.

Parameters

char *Database

The name of already opened database.

char *Table

The table name or table unique name. It can be NULL (0) and then the current opened table (if it is from the selected database) will be used.

char *User

The user (account) name for the database. It can be NULL (0) and then the user name will be retrieved from the list of opened sessions according to the database name.

char *DB_ImageFile

A file path to the image which is to be stored into the database.

DB_StoreImage

Description 

 DB_StoreImage(
   char *Database,
   char *Table,
   char *User
);

This function stores the currently opened image into the selected database table.

Parameters

char *Database

The name of already opened database.

char *Table

The table name or table unique name. It can be NULL (0) and then the current opened table (if it is from the selected database) will be used.

char *User

The user (account) name for the database. It can be NULL (0) and then the user name will be retrieved from the list of opened sessions according to the database name.

DB_StoreImageEx

Description 

 DB_StoreImageEx(
   char *Database,
   char *Table,
   char *User,
   char *String
);

This function stores the currently opened image into the selected database table. The string parameter is used for filling the database.

Parameters

char *Database

The name of already opened database.

char *Table

The table name or table unique name. It can be NULL (0) and then the current opened table (if it is from the selected database) will be used.

char *User

The user (account) name for the database. It can be NULL (0) and then the user name will be retrieved from the list of opened sessions according to the database name.

char *String

Macro string.

_DB_StoreFile

This function runs the File > Save to Database command.

Description 

 _DB_StoreFile();

If the opened image is not from a database, the function displays the Select Table dialog box to specify into which table the image should be stored. Otherwise (the image is from the database) it is stored straight to the database (and replaces the original image)