Subject | RE: [IBO] Error TBlobStream.Create(Query1FILEDATA, bmRead) |
---|---|
Author | Jason Wharton |
Post date | 2008-03-19T00:53:50Z |
Frank,
Use myQuery.CreateBlobStream() instead.
It's a method of the TDataset class that each implementation overrides.
Hope this helps,
Jason Wharton
> i evaluate in this time the IBO components. I will transformYou cannot use TBlobStream directly if you are not using the BDE.
> 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?
Use myQuery.CreateBlobStream() instead.
It's a method of the TDataset class that each implementation overrides.
Hope this helps,
Jason Wharton