pictconvfrom()

Function group Execute on client Platform(s)
Picture NO All

Syntax

pictconvfrom(format,binary-raw-data)

Description

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:

Example

ReadBinFile ("c:\myfile.jpg",lJpegData)
Do pictconvfrom("jpeg",lJpegData) Returns lJpegData
; converts the JPEG data lJpegData into a suitable value for Omnis fields