How to Update BOLB Fields (Oracle 10G )

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Bingowang
Posts: 2
Joined: Thu 04 Sep 2008 10:13

How to Update BOLB Fields (Oracle 10G )

Post by Bingowang » Thu 04 Sep 2008 10:28

When Oracle 8i,It Works

SQL.Add('Update RptDef');
SQL.Add('Set RptBlob = EMPTY_BLOB()');
SQL.Add(' Where BH=:BH');
SQL.Add(' Returning RptBlob Into :RptBlob');
ParamByName('BH').AsString:='1102';
ParamByName('RptBlob').ParamType := ptInput;
ParamByName('RptBlob').AsOraBlob.LoadFromFile(FileName);
ExecSql;

But Oracle10G,return errors
Why?

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 05 Sep 2008 08:21

Please specify the error that Oracle returns.

Bingowang
Posts: 2
Joined: Thu 04 Sep 2008 10:13

It Works

Post by Bingowang » Fri 05 Sep 2008 08:51

I resolve it
ODAC 6 have not the problem
but ODAC 5 have

Post Reply