public void LoadData(object v, int i)
        {
            row[i] = new EPBLOB();
            string s = v as string;

            if (s != null)
            {
                row[i].bs = GetBytes(s);
            }
        }
        public void ExecuteCommand(FieldList rowID, int index, EPBLOB blob)
        {
            bool bClosed = (cmdUpdates[index].Connection.State == System.Data.ConnectionState.Closed);

            try
            {
                int i;
                cmdUpdates[index].Parameters[0].Value = blob.bs;
                for (i = 0; i < rowID.Count; i++)
                {
                    cmdUpdates[index].Parameters[1 + i].Value = rowID[i].Value;
                }
                if (bClosed)
                {
                    cmdUpdates[index].Connection.Open();
                }
                cmdUpdates[index].ExecuteNonQuery();
                if (bClosed)
                {
                    cmdUpdates[index].Connection.Close();
                }
            }
            catch (Exception er)
            {
                FormLog.NotifyException(true, er);
            }
            finally
            {
                if (bClosed)
                {
                    if (cmdUpdates[index].Connection.State != System.Data.ConnectionState.Closed)
                    {
                        cmdUpdates[index].Connection.Close();
                    }
                }
            }
        }
 public void LoadData(DbDataReader dr, int i)
 {
     row[i]    = new EPBLOB();
     row[i].bs = GetBytes(dr, i);
 }