ImageEn, unit iexDBBitmaps

TIEDBBitmap.UpdateDatabaseImage

TIEDBBitmap.UpdateDatabaseImage


Declaration

procedure UpdateDatabaseImage();


Description

Writes any changes to the image back to the blob field of the database table (at the current cursor position). Your current settings for DataSource, ImageBlobField, ImageStorageMode and JpegQuality are used.
This method has no effect if images are not stored within the database (i.e. ImageStorageMode must be isEmbeddedBlob).
Raises exception on failure.

Note: This is the same as calling:
MyTable.Edit;
MyDBBitmap.Write();
MyTable.Post;


Example

// Rotate the current image and update the database
MyDBBitmap.Rotate( -90 );
MyDBBitmap.UpdateDatabaseImage();


See Also

 Write