READ PICTURE FILE

4D - Documentation   Français   English   German   Spanish   Japanese   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11.2 (Modified)


READ PICTURE FILE (fileName; picture{; *})

ParameterTypeDescription
fileNameStringName or full pathname of the file to read,
or empty string
picturePictureField or variable receiving picture
**If passed = accept any type of file

Description

The READ PICTURE FILE command allows you to open the picture saved in the fileName disk file and to load it in the picture 4D field or variable.

You can pass in fileName the full pathname of the file to read, or a file name only. If you just pass the file name, it should be located next to the database structure file. Under Windows, the file extension must be indicated.

If an empty string ("") is passed in fileName, the standard Open file dialog box is displayed and the user can select the file to be read, as well as the available formats.

You can obtain the list of available formats using the PICTURE CODEC LIST command.

You pass in picture the picture variable or field which will receive the picture read.

Note: The internal picture format is stored within the 4D variable or field. In the case of custom formats using QuickTime, it is necessary to have QuickTime in order to read the picture within 4D.

If you pass the optional * parameter, the command will accept any type of file. This means that you can work with pictures without necessarily having the suitable codecs (see the description of the BLOB TO PICTURE command).

See Also

BLOB TO PICTURE, PICTURE CODEC LIST, PICTURE TYPE LIST, Pictures, WRITE PICTURE FILE.

System Variables or Sets

If the command is executed successfully, the system variable Document contains the full pathname to the open file and the system variable OK is set to 1. Otherwise, OK is set to 0.


4D - Documentation   Français   English   German   Spanish   Japanese   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next