8. Working with Images and Text Strings : How You Can Work with Images : BitmapObject Class : Update Bitmaps in a Database
 
Share this page                  
Update Bitmaps in a Database
To remove an image from the database, use the DeleteFromDB method. The DeleteFromDB method deletes the image that has the current value of DBHandle attribute.
To delete a bitmap from a database
1. Set the value of the DBHandle attribute to the DBHandle for the image you want to delete.
2. Use the DeleteFromDB method to remove the image.
3. Commit the changes to the database.
The DeleteFromDB method returns ER_OK if successful or a nonzero value if there is an error.
For more information about error handling for the DeleteFromDB method, see Working with a Database (see Working with a Database).