Topic complex |
Table functions |
Function |
embedblob() |
Short |
Copies an external file or an array into a BLOB field |
Syntax |
EMBEDBLOB(table_field; [source : STRING; Typ : INTEGER|VAR array : [BYTE|CHAR|INTEGER|TBITS|REAL|STRING]]) : INTEGER |
Parameter |
table_field as
table : INTEGER; field number : INTEGER
table : INTEGER; label : STRING
source : name of the external file
type : type identifier of the file (see list below)
array : array reference to be copied in |
Return |
-1 : Operation failed (illegal path etc.)
otherwise : size of the BLOB in bytes |
See also: |
|
Description |
This embeds any file or an arrays content into a BLOB field.
Not the path of the file is stored but its type.
The following types are reserved:
- BMP (Windows Bitmap)
- PCX (PCX-Bitmap)
- WAV (Soundfile)
- WMF (Windows Metafile)
- GIF (Image)
- JPG (Image)
Storing an array within a BLOB provides complete new possibilities to you as developer. Think of for example session dependend mark lists.
|