After using a locator in a Transact-SQL statement, you can convert (dereference) the locator to the corresponding LOB.
declare @w text_locator select return_lob(text, @w)
insert my_table(textcol) values (@w)
The return_lob command overrides the set sent_locator on command. return_lob always returns the LOB.
insert my_table (textcol)) values(return_lob(text,?))
Use the locator_literal function to identify the locator:
insert my_table (imagecol) values (locator_literal(image_locator, binary_locator_value))