Insert image sample program

The exampl10.c sample program prompts you for an author identification and the name of a file containing an image, reads the image from the file, and inserts a new row containing the author identification and the image into the pubs2 database table au_pix. For general information on inserting text and image values into a database table, see “Text and image sample program”.

NoteTo run, exampl10.c requires access to Adaptive Server and the pubs2 database. The author identification must be of the form “nnn-nn-nnnn,” where n is a numeric digit. Provided with the sample code, imagefile contains an image.