W
wtang
Unregistered / Unconfirmed
GUEST, unregistred user!
问题是这样的:服务器端数据库中一字段为BLOB类型,
客户端使用TClientDataSet存取该字段,并将该字段存到一流TBlobStream中,例呈如下:
var Stream: TBlobStream;
begin
Stream := TBlobStream.Create(TBlobField(Dataset.FieldByName('blobfieldname')), bmRead);
Stream.read(XXX, sizeof(type of XXX));
Stream.free;
end
可是出现异常 Invalid Class typecast ,
请问这事怎末回时呢?
客户端使用TClientDataSet存取该字段,并将该字段存到一流TBlobStream中,例呈如下:
var Stream: TBlobStream;
begin
Stream := TBlobStream.Create(TBlobField(Dataset.FieldByName('blobfieldname')), bmRead);
Stream.read(XXX, sizeof(type of XXX));
Stream.free;
end
可是出现异常 Invalid Class typecast ,
请问这事怎末回时呢?