If you need bytes in your table, then just do it:
public static ReportDocument SetImage(ReportDocument sReport, int ReportIndex, string ReportName, string ImagePath)
{
try
{
DataTable imageTable = new DataTable("img");
imageTable.Columns.Add(new DataColumn("img", typeof(System.Byte[])));
DataRow dr = imageTable.NewRow();
dr["img"] = File.ReadAllByes(ImagePath);
imageTable.Rows.Add(dr);
sReport.Subreports[ReportIndex].SetDataSource(imageTable);
return sReport;
}
catch (Exception Ex)
{
MessageBox.Show("Error At : Program.SetImage() \n\n" + Ex.Message);
return sReport;
}
}