Hi,
First read your image file data into byte[] like -
String fullFilePath = FilePath + FileName;
FileStreamfs1 = new FileStream(fullFilePath, FileMode.Open, FileAccess.Read);
BinaryReader br1 = new BinaryReader(fs1);
byte[] bt1 = br1.ReadBytes((int)fs1.Length);
fs1.close();
(I am not sure about how to add imagedata into database. But it should be something like below. Experts please make me clear if I am wrong)
Create one column in database as ImageData with Varbinary(max) datatype.
Establish connection with database programaticaly. Then add this bt1 array value into database using INSERT query. Now create a dataset with column as DataColumn1 (datatype System.Byte[]). Set this dataset as the datasource of the CrystalReport, then drag and drop your DataColumn1 from dataset into Crystal Report. Fill Dataset by the query result using SqlDataAdaptor and SqlCommand object.
Hope this will work for you.
Thanks,
-YogeshP.