Assigns raw data to the graphic object.



Graphic.SetData inData, inType


Name   Type   Description
inData Array The binary data held as an Array of Bytes.
inType String See the Type Image Manipulation parameter for ways of specifying types.



You may wish to set the data directly if your image is not contained in a file (e.g. if it has come from a database). You can use the SetData method to do this.

You usually use a sample filename to specify the type. However in most cases the file type can be worked out even if an empty type string is passed in.


See Also

Graphic SetFile method.
Type Image Export parameter.