Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: SQL*Loader
There's several examples in Chapter 11 of my SQL*Loader book<g>. Here's a slightly simplified version of one of those:
LOAD DATA
INFILE 'waterfalls_photos.dat'
REPLACE INTO TABLE WATERFALLS
(
falls_photo_file FILLER CHAR TERMINATED BY ','
ENCLOSED BY '"',
falls_photo LOBFILE(falls_photo_file) RAW
TERMINATED BY EOF
falls_name CHAR TERMINATED BY ','
ENCLOSED BY '"'
)
Your input file should look something like:
"chapel_falls.jpg","Chapel Falls"
"scott_falls.jpg","Scott Falls"
...
All the JPG files should, of course, exist also.
Best regards,
Jonathan Gennick
mailto:jonathan_at_gennick.com * 906.387.1698
http://Gennick.com * http://MichiganWaterfalls.com * http://MetalDrums.org
Tuesday, July 17, 2001, 5:46:11 PM, you wrote:
Jac> Does anyone have a good example of loading an image (i.e..jpg, .gif, etc) into a
BLOB
Jac> column using SQL*Loader.
Jac> Looked through the docs and can't seem to find what I need.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jonathan Gennick INET: jonathan_at_gennick.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Jul 17 2001 - 20:30:26 CDT
![]() |
![]() |