Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
How can I extract documents that are saved in an Oracle database as LONG RAW out to files?.
I can't get the methods using blobs to work e.g tLOBDownload.
A typical error is "B] cannot be cast to java.sql.Blob"
Thanks
Geoffrey
Hi,
Have you tried to use tOracleInput component and the column type should be LONG RAW to extract your data to see if it works? The column type should be LONG RAW. What does your expected output look like? Is the result hexadecimal?
Best regards
Sabrina
Hi
Yep, using tOracleInput and it is recognised as LONG RAW.
I can extract the data from the LONG RAW if I use tMap to a Ms SQL database (VARBINARY) then use tLOBDownload. And the extracted file is complete (content is a Word doc that opens in Word successfully).
I cannot work out how to extract it from tOracleInput. LONG RAW are not Blobs so the usual methods don't work. Oracle website details how to stream long raw but I can't translate that to java code on tJavaRow (not a java programmer). Ideally I would prefer not use drop them into Ms SQL table
Thanks
Geoffrey
https://docs.oracle.com/cd/A97335_02/apps.102/a83724/basic4.htm#1002507