The example10.c sample program prompts you for an author ID and the name of a file containing an image, reads the image from the file, and inserts a new row containing the author ID and the image into the pubs2 database table called “au_pix.” For general information on inserting text or image values into a database table, see Example 9.
Access to an Adaptive Server that contains the pubs2 database
is required. The author ID must be in
the form “000-00-0000.” The imagefile file, provided
with the sample code, contains an image.