ImageEn, unit iexHelperFunctions

TImageEnIO.LoadFromBlob

TImageEnIO.LoadFromBlob


Declaration


function LoadFromBlob(aField: TBlobField;
                      bAutoAdjustOrientation: Boolean = False;
                      iImageIndex : Integer = -1
                      ): Boolean;


Description


Uses streams to load an image from the blob field of a database table, optionally setting EnableAdjustOrientation to automatically re-orient JPEG camera images and ImageIndex to display a specific image.
Returns True if loading was successful, or False on error

Note: You must define IE_DB_Helpers in iexHelperFunctions.pas to use this method


Example


// Load the image from the MyTableImageBlob field at the current position in the database
ImageEnView1.IO.LoadFromBlob(MyTableImageBlob);