Subject | Re: [IBO] Blob-jpeg issues |
---|---|
Author | Helen Borrie |
Post date | 2003-01-07T13:31Z |
At 01:11 PM 7/01/2003 +0000, you wrote:
myQuery.FieldByName('PIC').AssignTo (jpg);
Helen
>Hi there,Yer right! Try this:
>
>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));
myQuery.FieldByName('PIC').AssignTo (jpg);
Helen