Subject RE: [IBO] Error TBlobStream.Create(Query1FILEDATA, bmRead)
Author Jason Wharton
Frank,

> i evaluate in this time the IBO components. I will transform
> delphi applications from BDE to IBO. With GReplace is it no problem
> and the application works (no compiler error).
>
> But i became on runtime this error:
>
> Error: 'Ungültige Typumwandlung'
>
> The point is read stream from blob!
>
> Var
> InFile: TBlobStream;
> .
> .
> begin
> Query1.open;
> InFile := TBlobStream.Create(Query1FILEDATA, bmRead);
> .
> .
> end;
>
> (Query1FILEDATA = BlobField in a IBOQuery)
>
> What can i do?

You cannot use TBlobStream directly if you are not using the BDE.

Use myQuery.CreateBlobStream() instead.

It's a method of the TDataset class that each implementation overrides.

Hope this helps,
Jason Wharton