日期:2014-05-18 浏览次数:21123 次
数据库 数据类型image 应该为二进制 private DataSet CreateReportDataSet() { DataSet ds = new DataSet(); DataTable deliveryorderTable = new DataTable("orderItem"); deliveryorderTable.Columns.Add(new DataColumn("Image",System.Type.GetType("System.Byte[]")))); deliveryorderTable.Columns.Add(new DataColumn("orderCode")); deliveryorderTable.Columns.Add(new DataColumn("receiveShipmentQty")); deliveryorderTable.Columns.Add(new DataColumn("reimburseMark")); ds.Tables.Add(deliveryorderTable); return ds; } dr["image"] = Picture.ImageToBytes(Picture.GetPicBySize(Picture.ReadPicture(0, temp), 200, 300));