Imagem na tabela PARADOX
14/03/2003
0
Usei o seguinte codigo:
procedure TForm1.TButton1Click(Sender: TObject);
begin
OpenPictureDialog1.Execute;
Table1.Edit;
DbImage1.Picture.LoadFromFile(OpenPictureDialog1.Filename);
Table1.Post;
end;
Enfim.. nao grava a imagem, sejaa ela bitmap ou jpeg (inserindo jpeg na uses, claro)
E entao??
Um help por favor!!
Anonymous
Posts
14/03/2003
Anonymous
e use isso
TBlobField(Table.FieldByName(´CAMPO´)).LoadFromFile(´IMAGEM.BMP´);
Foi a melhor maneira que eu encontre de acaba os problemas
14/03/2003
Anonymous
e use isso
TBlobField(Table.FieldByName(´CAMPO´)).LoadFromFile(´IMAGEM.BMP´);
Foi a melhor maneira que eu encontre de acaba os problemas[/quote:cfaa6aec67]
Quem é TBlobField??
14/03/2003
Anonymous
Tenta aumentar o tamanho do arquivo... e tem outra eu só gravava BMP
[]´s
14/03/2003
Anonymous
TBlobField [/b:e392f09946]
represents a field in a dataset that holds a reference to a binary large object (BLOB).
Dá uma olhada no help do delphi que tem mais informações a repeito..[/b]
14/03/2003
Dr. Kill
TBlobField [/b:04f24608c3]
represents a field in a dataset that holds a reference to a binary large object (BLOB).
Dá uma olhada no help do delphi que tem mais informações a repeito..[/b][/quote:04f24608c3]
Ou Seja, são campos utilizados para gravar imagens, filmes, e sons. :roll:
Clique aqui para fazer login e interagir na Comunidade :)