Extract file saved in Oracle LONG RAW

Four Stars

Extract file saved in Oracle LONG RAW

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

 

 

Moderator

Re: Extract file saved in Oracle LONG RAW

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

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: Extract file saved in Oracle LONG RAW

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

 

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog