Subject Re: [IBO] Blob-jpeg issues
Author Helen Borrie
At 01:11 PM 7/01/2003 +0000, you wrote:
>Hi there,
>
>I now have my app displaying jpg's from a blob field in a TImage
>control via a TJPEGImage, but I would like to understand whats going
>on a little better. (I'm a bit confused!!)
>
>My code below works, but it seems somewhat tautological:
>
>{jpg is a pre-declared TJPEGImage}
>jpg.LoadFromStream(myQuery.FieldByName
>('PIC').Row.Statement.CreateBlobStream(myQuery.FieldByName('PIC'),
>bsmRead));

Yer right! Try this:

myQuery.FieldByName('PIC').AssignTo (jpg);

Helen