Einzelnen Beitrag anzeigen

blackfin
(Gast)

n/a Beiträge
 
#2

AW: Firebird - Zeos - Blob

  Alt 6. Jul 2010, 23:13
Delphi-Quellcode:
FStream := TMemoryStream.Create() ;

qryBlobInsert.Sql.Text := 'SELECT EVENT_PHOTO FROM EVENTS WHERE...' ;
qryBlobInsert.Open();
FStream := qryBlobInsert.CreateBlobStream(FieldByName('EVENT_PHOTO'), bmRead);
qryBlobInsert.Close() ;

FStream.Seek(0,soFromBeginning) ;
Image1.Picture.Bitmap.LoadFromStream(FStream );

Geändert von blackfin ( 6. Jul 2010 um 23:16 Uhr)
  Mit Zitat antworten Zitat