4D v13.4PICTURE TO BLOB |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
PICTURE TO BLOB
PICTURE TO BLOB
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 codec parameter a string setting the conversion format. A Codec can be an extension (for example, “.gif”), a Mime type (for example “image/jpeg”) or a 4-character QuickTime code (for example “PNTG”). You can get a list of available Codecs via the PICTURE CODEC LIST command. 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). |
PROPERTIES
Product: 4D
INDEX HISTORY
Modified: 4D v11 SQL SEE ALSO
BLOB TO PICTURE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||