BLOB TO PICTURE

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


BLOB TO PICTURE (pictureBlob; picture)

ParameterTypeDescription
pictureBlobBLOBBLOB containing a picture
picturePicturePicture from BLOB

Description

The BLOB TO PICTURE command inserts a picture stored in a BLOB into a 4D picture variable or field, regardless its original format — however the format should be QuickTime 4 compatible.

Warning: This command requires QuickTime version 4 or above for Mac OS and Windows. If Quicktime 4 is not installed, the command does nothing.

This command is similar to the command READ PICTURE FILE, it just applies to a BLOB instead of a file. It allows you to display pictures stored in native format into BLOBs. You can load a picture into a BLOB using, for example, the command DOCUMENT TO BLOB or PICTURE TO BLOB.

A BLOB variable or field containing a picture is passed in the pictureBlob parameter. The picture can be in any QuickTime 4 supported format. You can obtain the list of available formats using the PICTURE TYPE LIST command. Refer to the PICTURE TYPE LIST command for a description of QuickTime 4 standard format codes.

Pass in the picture parameter the 4D picture field or variable which should display the picture.

Note: The internal picture format is stored by QuickTime within the 4D variable or field. Consequently, it is necessary to get QuickTime to read the picture within 4D.

Once the command has been executed, the picture parameter contains the picture to display.

If the conversion has been done successfully, the system variable OK is set to 1. If the conversion has failed (QuickTime 4 is not installed, or the BLOB does not contain a readable picture), OK is set to 0 and the picture variable or field is empty.

See Also

PICTURE TO BLOB, PICTURE TYPE LIST, READ 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