Subject | Re: [IBO] Blob-jpeg issues |
---|---|
Author | mp527 <mp527@yahoo.com> |
Post date | 2003-01-07T15:24:39Z |
I think this would work also, and maybe a bit better since you are
freeing the blobstream after you are finished with it in a
try..finally
var
datstream:tstream;
{your query stuff here}
datstream:= CreateBlobStream(myQuery.FieldByName('PIC'), bsmRead);
try
datstream.position:=0;
jpg.LoadFromStream(datstream);
finally
freeandnil(datstream);
end;
Tony
freeing the blobstream after you are finished with it in a
try..finally
var
datstream:tstream;
{your query stuff here}
datstream:= CreateBlobStream(myQuery.FieldByName('PIC'), bsmRead);
try
datstream.position:=0;
jpg.LoadFromStream(datstream);
finally
freeandnil(datstream);
end;
Tony
>
> Yer right! Try this:
>
> myQuery.FieldByName('PIC').AssignTo (jpg);
>
> Helen