dbUpdate method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Access 95, 97 example

Visual J++ example

Syntax short dbUpdate (short iFormat, short iBitsPerPixel, short iQuality);

Overview:  Refer to Managing Images in a Database

Remarks

Updates the database, implementing changes specified with the dbAddNew method or the dbEdit method.

This method's parameters specify how the image is saved. The image field is specified in the dbOpen method.

If the bitmap is 8 bits per pixel or greater, use the LEAD CMP format or one of the JPEG (JTIF or JFIF) formats to save disk space.

If the bitmap is 1-bit per pixel, use the LEAD 1-bit format or a CCITT Group 3 or 4 format to save disk space.

For CCITT Group 3 and 4 formats, the first RGBQUAD structure in the bitmap's palette determines the white component of the image. If the rgbRed field is 0, then all 0 bits in the image are assumed to be black. Otherwise, all zero (0) bits in the image are assumed white.

See Also

Elements:  dbAddNew method, dbEdit method, dbDelete method, dbLockingMode property

Topics:  Databases: Using ODBC