version 6.0.5
AP Read Picture BLOB (file; image) Longint
| Parameter | Type | Description | |
| file | BLOB | BLOB containing the picture file | |
| image | Picture | Image that will contain the read picture | |
| Function result | Longint | 0, if the operation was successful; | |
| otherwise a system error code |
Description
If you store a picture file in a BLOB (using the DOCUMENT TO BLOB command), AP Read Picture BLOB allows you to retrieve this image in the image parameter. You can then display the picture in 4D.
Images are stored in their original formats and can be exported without alteration (using the command BLOB TO DOCUMENT). For example, a compressed JPEG image takes a few Kb; the same image, uncompressed, can take several Mb when stored in a 4D picture.
The file formats accepted by this command are the same as those accepted by AP Read picture file.
If the operation is completed successfully, the function returns 0; otherwise, it returns a negative error code (e.g., -108 for memory full error).
See Also