I have a table with a LONG RAW column and I'm trying insert a long string value ( a binary image coming from a MS SQL database ) by doing the following:
Code: Select all
if FCommand.Params[Index].Datatype in [ftBLOB, ftOraBLOB]
then begin
FCommand.Params[Index].ParamType := ptInput;
FCommand.Params[Index].AsOraBlob.OCISvcCtx := FCommand.Session.OCISvcCtx;
FCommand.Params[Index].AsOraBlob.CreateTemporary(ltBlob);
ss := TStringStream.Create(Value);
try
FCommand.Params[Index].AsOraBlob.LoadFromStream(ss);
FCommand.Params[Index].AsOraBlob.WriteLob;
finally
ss.Free;
end;
end
FCommand is a TOraSQL component, I set the datatype of the parameter to ftBLOB.
However, I'm getting:
ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 21626, maximum: 2000)
How should I write to a (LONG) RAW column?
--
Martijn Tonies