TLobLocator - LoadFromFile

rlorenz3

Member
I try to save a zip-File to my oracle-database 9i via a stored procedure.

But I didn't found a solution.

Can someone give me a short example?

I try the following:

LOB := TLobLocator.create(OracleSession1, otBLOB);
LOB.LoadFromFile(filename);

Everytime I get the error-message 'TLobLocator: Invalid handle'.

Thanks in advance.
 
I found a solution for this problem by myself:

I changed the following:

LOB := TKobLocator.CreateTemporary(OracleSession1, otBLOB);
LOB.LoadFromFile(filename);

Now it works fine.
 
Back
Top