PICTURE TO BLOB

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.7


PICTURE TO BLOB (picture; pictureBlob; format)

ParameterTypeDescription
picturePicturePicture field or variable
pictureBlobBLOBBLOB to receive the converted picture
formatString (4)Picture format (4 characters)

Description

The PICTURE TO BLOB command converts a picture stored in a 4D variable or field to another format and places the resulting picture in a BLOB.

A picture 4D field or variable is passed in the picture parameter. In the pictureBlob parameter is passed a BLOB variable or field which should contain the converted picture.

Pass in the format parameter a 4-characters string setting the conversion format. This format can be:

either a QuickTime format (see command PICTURE TYPE LIST description), in this case QuickTime version 4 or above must be installed on the machine,

either "GIFf" (GIF format) or "WBMP" (Wireless Bitmap); these last two formats do not require QuickTime 4.

Once the command has been executed, the pictureBlob contains the picture in the specified format.

If the conversion was successful, the system variable OK is set to 1. If the conversion has failed (QuickTime is not installed or the convertor is not available), OK is set to 0 and the generated BLOB is empty (0 byte).

See Also

BLOB TO PICTURE, PICTURE TO GIF, PICTURE TYPE LIST, WRITE PICTURE FILE.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next