Fórum GRAVAR IMAGEM NO BANCO DE DADOS #370818
27/05/2009
0
Boa tarde,
Pessoal estou tentando gravar uma imagem no meu banco de dados oracle, so que o codigo grava, so que a imagem NÃO.
segue abaixo o codigo :
begin
ADOQuery1.Append; //-ou dataset.edit;
If OpenDialog1.Execute then
DBImage1.Picture.LoadFromFile(OpenDialog1.FileName);
ADOQuery1.FieldByName(´DFFUNCRACHA´).AsString := ´1´;
ADOQuery1.post;
end;
Pessoal estou tentando gravar uma imagem no meu banco de dados oracle, so que o codigo grava, so que a imagem NÃO.
segue abaixo o codigo :
begin
ADOQuery1.Append; //-ou dataset.edit;
If OpenDialog1.Execute then
DBImage1.Picture.LoadFromFile(OpenDialog1.FileName);
ADOQuery1.FieldByName(´DFFUNCRACHA´).AsString := ´1´;
ADOQuery1.post;
end;
Evandro_araujo
Curtir tópico
+ 0
Responder
Posts
28/05/2009
Evandro_araujo
PESSOAL,
CONSEGUI RESOLVER
ADOQuery1.Open;
ADOQuery1.insert; //-ou dataset.edit;
If OpenPictureDialog1.Execute then
ADOQuery1ENC_BL_IMG.LoadFromFile(OpenPictureDialog1.FileName);
ADOQuery1.FieldByName(´DFFUNCRACHA´).AsString := ´1´;
ADOQuery1.post;
CONSEGUI RESOLVER
ADOQuery1.Open;
ADOQuery1.insert; //-ou dataset.edit;
If OpenPictureDialog1.Execute then
ADOQuery1ENC_BL_IMG.LoadFromFile(OpenPictureDialog1.FileName);
ADOQuery1.FieldByName(´DFFUNCRACHA´).AsString := ´1´;
ADOQuery1.post;
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)