exampl11.c retrieves an image from the au_pix table in the pubs2 database. The author identification you enter determines which row the program selects. After retrieving the row, this example copies the image contained in the pic column to a file you specify.
There are two ways to retrieve a text or image value from Adaptive Server:
exampl11.c selects the row containing the value and processes the row using dbnextrow. After dbnextrow is called, dbdata can be used to return a pointer to the returned image.
You can also use dbreadtext with dbmoretext to read a text or image value in the form of a number of smaller chunks. For more information on dbreadtext, see the Open Client DB-Library/C Reference Manual.
This sample requires access to Adaptive Server that
contains the pubs2 database.