Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2006-07-07
5
Medium Priority
?
696 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 1200 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 1200 total points
ID: 17059120
0
 
LVL 14

Assisted Solution

by:sathyagiri
sathyagiri earned 400 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 400 total points
ID: 17071260
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Via a live example, show how to take different types of Oracle backups using RMAN.

704 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