RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBAdaptImg.TImageDataSetFieldGetImageEvent Type

TImageDataSetFieldGetImageEvent is the type for event handlers on dataset adapter image fields that supply the image.

Pascal
TImageDataSetFieldGetImageEvent = procedure (Sender: TObject; var MimeType: string; var Image: TStream; var Owned: Boolean) of object;
C++
(Sender: TObject; var MimeType: string; var Image: TStream; var Owned: Boolean) ( TImageDataSetFieldGetImageEvent)();

TImageDataSetFieldGetImageEvent is the type for event handlers of dataset adapter image field that can supply a stream from which to read the field's value. 

Sender is the adapter field that represents the desired image. 

MimeType returns the encoding in which the event handler returns the image. This becomes the value of the ContentType header of the HTTP response message containing the image. MimeType is the name of a MIME type and subtype, such as 'image/jpeg'. 

Image returns a stream from which to read the image, encoded in the MIME type specified by the MimeType parameter. 

Owned returns true if the adapter field should free the stream that Image returns after reading the image. If Owned returns false, the adapter field does not free the stream object. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!