BLOB parameters and ClientDataSet's

I have a problem with BLOB parameters used with ClientDataSet's. If I try to insert a record with a BLOB parameter over a ClientDataSet I get an error.
My code looks like this:

with ClientDataSet do begin
CommandText := 'INSERT INTO BLOBTABLE(GRAFIC) VALUES (:PGRAFIC)';
Params.ParamByName('PGRAFIC').LoadFromFile('D:\XYZ.BMP', ftOraBLOB);
Execute;
end;

The ClientDataSet is linked to a DataSetProvider which is linked to a TOracleDataSet. The error is raised in TOracleQuery.BindVariables on line 5928 (the result of TLOBLocator(buf) is NIL).

Do I try to do something in the wrong way or something that is not supported by DOA or is this a bug in DOA ?

Thanks,
Philipp Siegrist
 
Back
Top