[code]CurrBigMap1 = this.View.Model.GetValue("FImage1") as byte[];
CurrBigMap2 = this.View.Model.GetValue("F_ajl_Image1") as byte[];
CurrBigMap3 = this.View.Model.GetValue("F_ajl_Image2") as byte[];
strSql = " INSERT INTO T_BD_MATERIALIMG(FMaterialID,FImage0,FImage1,FImage2) VALUES ("+strMasterId+",@FImage0,@FImage1,@FImage2)";
SqlParam param1 = new SqlParam("@FImage0", KDDbType, CurrBigMap1);
SqlParam param2 = new SqlParam("@FImage1", KDDbType, CurrBigMap2);
SqlParam param3 = new SqlParam("@FImage2", KDDbType, CurrBigMap3);
List
paraList.Add(param1);
paraList.Add(param2);
paraList.Add(param3);
DBServiceHelper.Execute(this.Context, strSql, paraList);[/code]代码中的KDDbType要使用什么类型?数据库中的FImage0,FImage1,FImage2使用的是Image类型
KDDbType不存在Image枚举,存在Byte枚举,但因为后面第三个参数是Byte[]类型的,也是无法传参进去。
不知道图片该如何存储???
推荐阅读