Hi,
I am using:
DOA 4.0.7.1
OCI: version 8.0
Oracle Database 9i
I have OracleQuery with following SQL
begin
BLOB_TOOLS.BLOB_TEST
P_ROWID,
_BLOB);
end;
_ROWID is a string, but
_BLOB is a blob parameter.
I try set this BLOB parameter in the following manner:
LOB := TLOBLocator.Create(OracleSession1, otBLOB);
LOB.LoadFromFile(Edit1.Text);
OracleQuery1.SetComplexVariable('P_BLOB', LOB);
Unfortunatelly on LoadFromFile I receive exception "TLOBLocator: Invalid handle".
I tried following code, too:
LOB := TLOBLocator.CreateTemporary(OracleSession1, otBLOB, false);
LOB.LoadFromFile(Edit1.Text);
OracleQuery1.SetComplexVariable('P_BLOB', LOB);
But in this case I receive on LoadFromFile exception: TLOBLocator requires Net8 8.1 or later.
Can you show me solution?
Best regards
Krzysztof
I am using:
DOA 4.0.7.1
OCI: version 8.0
Oracle Database 9i
I have OracleQuery with following SQL
begin
BLOB_TOOLS.BLOB_TEST


end;


I try set this BLOB parameter in the following manner:
LOB := TLOBLocator.Create(OracleSession1, otBLOB);
LOB.LoadFromFile(Edit1.Text);
OracleQuery1.SetComplexVariable('P_BLOB', LOB);
Unfortunatelly on LoadFromFile I receive exception "TLOBLocator: Invalid handle".
I tried following code, too:
LOB := TLOBLocator.CreateTemporary(OracleSession1, otBLOB, false);
LOB.LoadFromFile(Edit1.Text);
OracleQuery1.SetComplexVariable('P_BLOB', LOB);
But in this case I receive on LoadFromFile exception: TLOBLocator requires Net8 8.1 or later.
Can you show me solution?
Best regards
Krzysztof