QPx_SetImporterData(importerRef; importerRef):error
importerRef Longint Reference to a graphics importer instance
imageData BLOB 4th Dimension BLOB containing the image data
error Longint Error result

Assign image data from a BLOB to a graphics importer

The graphics importer instance is specified by importerRef.

The BLOB holding the image data is specified by imageData.

If importerRef is already associated with a file, or if it does not refer to an existing graphics importer instance, the qpx_paramErr error code is returned.


   // Assign image data to the importer



$imagePath:="Hard disk:images:people.gif"
DOCUMENT TO BLOB($imagePath;$imageData)

$error:=QPx_SetImporterData (gQPixImporter;$imageData)

If ($error#qpx_noErr)
      // Handle the error
End if 

Related commands

QPx_NewImporter Create a graphics importer instance without image data
QPx_NewImporterForData Create a graphics importer instance for the image data stored in a BLOB
QPx_GetImporterData Get the image data associated with a graphics importer