The error message suggests that the TLOBLocator was not initialized on the server. You should insert an empty_blob() into the BLOB column, and return this initialized BLOB into the TLOBLocator variable:
Code:
insert into [TABLE]
(..., your_blob_column, ...)
values
(..., empty_blob(), ...)
returning your_blob_column into :your_blob_variable
All you need is the address of the image data and its size, so that you can pass this information to TLOBLocator.Write. I'm not really a TImage expert though, so I couldn't say how this works.
------------------
Marco Kalter
Allround Automations