Home - Programming - Delphi: TBlobStream.Create fails with "Invalid typecast"

PROBLEM: TBlobStream.Create fails with "Invalid typecast"

SOLUTION: Check your uses clause. TBlobStream in DBTables expects to be working with BDE-related datasets. If you're using a third party component that redefines TBlobStream, the two can't be mixed. For instance I'm using the TBlobStream in DevArt's DBAccess, which despite the fact that DevArt made a poor decision in naming the class, is not the same as the DBTables class. They would have been better off calling it TDevArtBlobStream or something similar, but whatever...


Todd Grigsby