Registriert seit: 9. Nov 2003
Ort: 04539 Groitzsch
1.351 Beiträge
Delphi 11 Alexandria
|
Re: Timage aus Blobfeld
9. Apr 2007, 13:38
... oder mit CreateBlobStream:
Delphi-Quellcode:
procedure TForm1.Button3Click(Sender: TObject);
var
AStream: TStream;
begin
MyTable.Active := true;
MyTable.First;
AStream := MyTable.CreateBlobStream(FieldByName('Picture'), bmRead);
try
image1.Picture.LoadFromStream(AStream);
finally
AStream.Free;
end;
end;
Cu, Frank
Frank Reim
|