AP Read Picture BLOB

4D - Documentation   Français   English   German   4D_Pack, Command Theme List   4D_Pack, Command Alphabetical List   Back   Previous   Next

version 6.0.5


AP Read Picture BLOB (file; image) Longint

ParameterTypeDescription
fileBLOBBLOB containing the picture file
imagePictureImage that will contain the read picture
Function resultLongint0, 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

BLOB TO DOCUMENT.


4D - Documentation   Français   English   German   4D_Pack, Command Theme List   4D_Pack, Command Alphabetical List   Back   Previous   Next