| Function group | Execute on client | Platform(s) |
| Picture | NO | Windows,macOS |
pictconvfrom(format,binary-raw-data)
pictconvfrom() takes the binary-raw-data in the specified format and returns a value suitable for use in relevant Omnis fields. Typically this means that pictconvfrom() adds header information to raw data.
Valid values for the format are as follows:
In addition, it is possible to add further formats using the external component interface.
The following example reads a JPEG file from disk and displays it:
ReadBinFile("c:\myfile.jpg",lJpegData)
Dopictconvfrom("jpeg",lJpegData)ReturnslJpegData# converts the JPEG data lJpegData into a suitable value for Omnis fields