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"
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?
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
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Part 2 of a series on Context Variables
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema