To retrieve from and store data to a SQL database, you must define a SQL image data provider.
The ImageGear built-in SQLImageDataProvider is an ADO.NET based ImageProvider, which by default uses Microsoft SQL Server Data provider. However, this provider can be configured to use any database.
The built-in SQLImageDataProvider requires that image data be stored in the database in one of these forms:
The built-in SQLImageDataProvider requires that annotation data be stored in the database as follows:
- A column/data field containing annotation data stored as a "CLOB" (Character Large Object).
A custom Sql Image data provider can be written to replace the built-in SqlImageDataProvider. Most databases are transaction-aware but if you choose to use a non-transactional database, then you must be mindful of transactions in your custom provider when writing annotation data. See Loading from a Database for more information.
This section provides information about the following: