| procedure TForm1.ListBox1Click(Sender: TObject); var
 mem:TStream;
 bmp:TBitmap;
 begin
 with Table1 do
 begin
 First;
 while not Eof do
 begin
 if FieldByName(’Name’).AsString=ListBox1.Items[ListBox1.ItemIndex] then
 break;
 Next;
 end;
 bmp:=TBitmap.Create;
 mem:=CreateBlobStream(FieldByName(’Data’),bmRead);
 mem.Position:=0;
 bmp.LoadFromStream(mem);
 self.Image1.Picture.Assign(bmp);
 bmp.Free;
 mem.Free;
 end;
 end;
 |