I have the following code, but it doesn't display the jpg in the TImage:
sf := TfrmSplash.Create(nil);
ms := TMemoryStream.Create;
try
bf := TBlobField(dbfuncs.tblBlobs.FieldByName('BBlob'));
bf.SaveToStream(ms);
ms.Position := 0;
sf.imgDisplay.Picture.Graphic.LoadFromStream(ms);
sf.Show;
Sleep(2000);
finally
ms.Free;
sf.Free;
end;
Why doesn't this work? I have jpeg in the uses clause of both forms involved. But nothing is displayed in the image.....