Beispiel #1
0
 public int UpdateBackPicFile(string filename, byte[] filebytes)
 {
     try
     {
         int        i      = 0;
         string     sqlstr = "update G_DPicFile set Fileimg=@Fileimg where Filename=@Filename";
         SqlCommand comm   = new SqlCommand();
         comm.CommandText = sqlstr;
         comm.Parameters.AddWithValue("@Fileimg", filebytes);
         comm.Parameters.AddWithValue("@Filename", filename);
         //Czlt-2012-12-14 假如图形修改成功以后 要更新备份表中的图形信息
         i = dba.ExecCommand(comm);
         if (i >= 1)
         {
             CzltUpdateBack();
         }
         return(i);
         //return dba.ExecCommand(comm);
     }
     catch (Exception ex)
     {
         return(-1);
     }
 }