modifier une image dans un champ blob
salut tous j'ai un petit problème sur la modification d'un champ blop avec un Query
j'ai donc une première foi enregistrer mon image dans un champ blob come ceci
Code:
1 2 3 4 5 6
|
DataModule2.TableMembre.FieldByName('Symbol').Value:=Symbol.Text;
if Titre.Text='Mr' then
DataModule2.TableMembre.FieldByName('Symbol').Assign(Image5.Picture.Bitmap)
else
DataModule2.TableMembre.FieldByName('Symbol').Assign(Image4.Picture.Bitmap); |
maintenant j'ai besoin de modifier mon champ blob ,mais je ne trouve pas la solution.
Vous l'avez compris j'ai le choix entre plusieurs image si mon champs titre est égale à Mr etc...
moi j'ai fais
Code:
1 2 3 4 5 6 7 8
| DataModule2.Query1.SQL.Clear;
DataModule2.Query1.SQL.Add('Update matable.DB set Sexe = '+ QuotedStr(Titre.Text)
+',Nom = '+ QuotedStr(Nom.Text)
+',Prenom = '+ QuotedStr(Prenom. text)
+',Symbol = '+ QuotedStr(Symbol.text)
+',Symbol = '+ QuotedStr(Image4.Picture.Bitmap);//j'ai fais mon choix d'image
+' where Idmembre ='+ QuotedStr(Id.caption)+'');
DataModule2.Query1.ExecSQL; |
merci de votre aide