I developed a contact management system in C and Neuron Data on NT4. My
task now is to include file attachments for contacts.

Does anyone have code examples of how to send a binary file, for example,
contact_detail.doc (ms word file, 0-5meg), to Sybase and how to retrieve
and reconstruct the file? I assume the table would be similar to the
following :

create table contact_attachments (
contact_id int not null,
doc_data image null,
doc_name varchar(100) null,
user_nm varchar(30) null,
update_tm datetime null)

I am looking for "Load Attachment", "View Attachment" and "Delete
Attachment" type of code.

Thanks !