I am trying to store an image file into an SQL table. I am using MS SQL Server as the back end and VC++ as the front end. I am using CRecordset to connect to the database and browse through the records. MSDN says to use either CByteArray or CLongBinary to store large datatypes. But i can't figure out how to implement it. Please help.