Bon , j'ai encore un petit problème.......Pour l'ecriture dans le champs BLOB ca marche nikel sauf qu'au lieu de m'udpater la ligne il me fait un insert.....Quelqu'un voit un peu le problème dans mon code :
MySqlDataAdapter
da = newMySqlDataAdapter("select * from client WHERE ID_client="+id, connectionBDD.connect);MySqlCommandBuilder myCB = newMySqlCommandBuilder(da);DataSet ds = newDataSet("BLOB");da.MissingSchemaAction =
MissingSchemaAction.Add;FileStream fs = newFileStream(path, FileMode.OpenOrCreate, FileAccess.Read);byte[] myData = newbyte[fs.Length];fs.Read(myData, 0,
Convert.ToInt32(fs.Length));fs.Close();
da.Fill(ds,
"client");DataRow myRow;myRow = ds.Tables[
"client"].NewRow();myRow[
"logo"] = myData;myRow[
"ID_client"] = txtIDclient.Text;myRow[
"nom"] = txtNom.Text;myRow[
"societe"] = txtSociete.Text;myRow[
"fonction"] = txtFonction.Text;myRow[
"mdp"] = txtMotDEPasse.Text;myRow[
"login"] = txtLogin.Text;
ds.Tables[
"client"].Rows.Add(myRow);da.Update(ds,
"client");
Encore merci : )