When I run this procedure, the image in the database has 4 images. It is only giving me 1 image.
What am I doing wrong?
procedure TfrmObras.DocumentosdeObrasTbAfterOpen(DataSet: TDataSet);
var
flujo:tstream;
begin
if not documentosdeobrastb.IsEmpty then
try
lasfotos.clear;
flujo:=tmemorystream.Create;
flujo:=documentosdeobrastb.CreateBlobStream(DocumentosdeObrasTbIMAGENDELDOCUMENTO,bmRead);
flujo.position:=0;
lasfotos.mio.LoadFromStreamTIFF(flujo);
finally
flujo.Free;
end;
end;