Subject Re: [IBO] Blob question
Author Lester Caine
> What is Obj ?

Now you are asking!

Translating FastReport IBO conversion I think I get

( TIB_Column Blob )->AssignTo( TObject Obj );

And going back up the chain, the TObject Obj is either TMemoryStream,
TGraphic or TStringList. I now have both Pictures and Memos working just by
removing the one .Position which leaves the contents of frAssignBlobTo as:-

procedure frAssignBlobTo(Blob: TfrTField; Obj: TObject);

Where TfrTField has been defined as TIB_Column, and it works, so I assume
that the 'Obj' is already at the start when it is assigned, and adding

TStream(Obj).Position := 0; after the AssignTo is just not needed, and
probably came about because of an old problem with IBO?

I just wanted to understand what is going on so that I can get FastReport
fixed in it's IBO mode. I am finding that I can just use the TIB_Query and
print it without building a new TIBOQuery just for a report.

> ----- Original Message -----
> From: "Lester Caine" <lester@...>
> To: "IBO" <>
> Sent: Sunday, July 01, 2001 2:12 AM
> Subject: [IBO] Blob question
> > I am really starting to motor now, and am clearing up
> > niggles from some time ago.
> >
> > FastReport have just up-issued, and I have an IBO version
> > running ( there was a problem in compiling which has been
> > posted on the FastReport list ), but when running my IBO
> > database tests I was reminded of a problem that I ignored at
> > the time.
> >
> > For accessing blobs using IBO, the following code is called
> >
> > .....
> > Blob.AssignTo(Obj);
> > TStream(Obj).Position := 0;
> > .....
> > but causes an error.
> >
> > If I comment out the .Position line then everthing is fine
> > and it works.
> >
> > Any ideas what the problem is, and if the .Position is ever
> > needed?

Lester Caine
L.S.Caine Electronic Services