image类型的字符串问题.

代码:
 Byte[] FileByteArray = new Byte[FileLength];
                    Stream StreamObject = UpFile.InputStream;
                    string typeValue=UpFile.ContentType;
                    StreamObject.Read(FileByteArray, 0, FileLength);
                    DAL.DBAccess objDBA = new DAL.DBAccess(strConn);
                    Response.Write(FileByteArray);
                    string strSQLAdd = "EXECUTE sp_ImageStore_insert '" + ImageID + "'," + FileByteArray + ",'" + typeValue + "','" + ImageDescription + "'," + FileLength;
                    bool flagAdd = objDBA.ExecuteSQL(strSQLAdd, out strMessage);
问题出在红字部分

错误提示:
System.Byte[]'.' 附近有语法错误。缺少对象或列名,或者对象或列名为空。对于 SELECT INTO 语句,请确保每列均具有名称。对于其他语句,请查找空的别名。不允许使用定义为 "" 或 [] 的别名。请添加名称或单个空格作为别名。

========/////////??????????????????????????????????????????????????




posted @ 2007-08-28 17:20  wj-conquer  阅读(319)  评论(0编辑  收藏  举报