version 6.0.5
AP Get picture type (storedPicture) Longint
| Parameter | Type | Description | |
| storedPicture | Blob | Picture stored as a BLOB | |
| Function result | Longint | Type of the picture |
Description
AP Get picture type returns the type of the image stored in the BLOB storedPicture:
| -1 | Unknown type |
| 0 | 'PICT' picture |
| 1 | QuickTime compressed 'PICT' picture |
| 2 | JPEG picture |
| 3 | WMF picture |
| 4 | EMF picture |
| 5 | BMP picture |
| 6 | GIF picture |
Example
This example stores a picture in a BLOB and then stores its type in $type.
DOCUMENT TO BLOB($thefile;$theblob) $type:=AP Get picture type($theblob)