Solved

How do I export BLOBs (.JPGs) from Oracle 9i into individual .JPG files?

Posted on 2006-07-07
5
688 Views
Last Modified: 2008-01-09
Hello,

I have a database with 2029 images stored in it.  The problem with just moving them from one database to another is I need to go through an enrollment process with them so I need the individual files.  I cannot simply migrate the data.

I have been using OraLOB Editor to save them individually.... but it is taking way too long.  I need this done ASAP.

In the table with the BLOBs there is also a column for original filename.  Is there a way to grab the image, assign the name from the 'IMAGE NAME' field of the corresponding record and save it to disk?
0
Comment
Question by:emoshag
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 19

Accepted Solution

by:
actonwang earned 300 total points
ID: 17059030
0
 
LVL 19

Expert Comment

by:actonwang
ID: 17059074
you could use:

(1). UTL_FILE (UTL_FILE.PUT_RAW) combined with DBMS_LOB package to write blob data into a file (in the server side).

(2) use java (blob data stream) to write it to local file.

see examples in the above link.

acton
0
 
LVL 19

Assisted Solution

by:actonwang
actonwang earned 300 total points
ID: 17059120
0
 
LVL 14

Assisted Solution

by:sathyagiri
sathyagiri earned 100 total points
ID: 17062988
Check this one , they have a sample program

http://www.freelists.org/archives/oracle-l/02-2004/msg02636.html
0
 
LVL 16

Assisted Solution

by:MohanKNair
MohanKNair earned 100 total points
ID: 17071260
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
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.

738 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