Topic complex |
Table functions |
Function |
copyblob() |
Short |
Copies the (embedded) content of a BLOB field to a file or into an array |
Syntax |
COPYBLOB(blob : fielddesc; [file : STRING|VAR array : [BYTE|CHAR|INTEGER|TBITS|REAL|STRING]]) : INTEGER |
Parameter |
blob : table handle,field number (or)
table handle,field identifier
file : path of the file, where the content shall be copied to
array : an array reference |
Return |
error code
0 = successfully transmitted |
See also: |
|
Description |
CopyBlob() can be used with embedded BLOBs only.
If file is 'con', the BLOB is copied to the standard output channel.
In case you pass an array reference instead of a file name you should keep in mind to dimension that array to the correct size (see BlobSize()) before. Otherwise you might lose data!
|