How to read BLOB data from Oracle and save as a file

I am writing a script using Perl 5.6.1 and the DBI module to read data out of a table created by another program and create an IBM Rational ClearQuest record.  I will be using the ClearQuest API to create the record.  Some of the rows in the table I am reading contain BLOB data which where attachments added by the user of the other system.  In order to get the attachment into the ClearQuest database using its API, I have to reconstruct the BLOB data into a file on the file system.  Please send me some code samples that would show me how to read the BLOB data and save it to the file system in its original format (Word, Zip, XML, Text, etc...).
curmudjim72Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
inq123Connect With a Mentor Commented:
Hi curmudjim72,

A quick google search turns up:

http://coding.derkeiler.com/Archive/Perl/perl.dbi.users/2004-02/0278.html (perl answer to a question almost exactly like yours)
and this one's good too, a module and example:
http://www.cpan.org/modules/by-module/DBIx/DBIx-BLOB-Handle-0.2.readme

Cheers!
0
 
curmudjim72Author Commented:
The BLOB data I need to extract is in an Oracle 8.1.7 database.  I am using Windows 2K.
0
 
curmudjim72Author Commented:
The table I am reading, which contains the BLOB data, also has columns which contain the type and format of the BLOB data (application/msword and Long Text) for example.
0
 
curmudjim72Author Commented:
Thanks for the examples, but can this not be accomplished using perl?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.