Solved

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

Posted on 2006-07-07
5
684 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
oracle query help 18 99
statspack purge automate 7 52
Determine Who is Runnig my Bash Shell Script 4 61
Get the parent node - XMLTYPE 9 56
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

911 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now