Reading and FTPing BLOB using datastage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
dinthat
Participant
Posts: 22
Joined: Tue Sep 25, 2007 8:43 am
Location: Kingdom of Saudi Arabia

Reading and FTPing BLOB using datastage

Post by dinthat »

Hi All,

My requirement is very simple. I 've one oracle table as source, which is having one column with data type as BLOB and this column is storing images. Now I need to read this column using Datastage and FTP this images to my UNIX server as image files.

Can anybody help me to solve this?
Thanks And Regards,
dinthat
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

BLOBs and CLOBs aren't supported. You can actually write to a LOB, but cannot read from it. If you know your maximum length you can write a workaround SQL query that uses CAST to move 4000 character substrings from the LOB into VarChar2(4000) columns. We just did this for LOBs that we know won't exceed 200Kb so only had to write 50 columns for temporary use.
Post Reply