Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Extraction of BLOBS (LONG RAW) using PL/SQL

Posted on 1997-08-27
1
Medium Priority
?
1,389 Views
Last Modified: 2008-03-10
I am trying to find out how to extract a BLOB (LONG RAW data type) from an Oracle database using PL/SQL, and then write it to a file on a UNIX file system.
0
Comment
Question by:oracle082697
1 Comment
 

Accepted Solution

by:
leonidt earned 100 total points
ID: 1080471
The main problem is that PL/SQL does not operate with
data more than 32K long. So you can select the data from long
raw column into PL/SQL variable of type long raw or long
(does not actually matter for PL/SQL) and then write it to UNIX
File using UTL_FILE, the only problem is that you cannot get
more than 32K. There is no way in PL/SQL to operate with data more than 32K long. My advice is to get it through the OCI
interface from C/C++ or probably (I never tried that but should work) even through VB using ODBC.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question