I wanted to store the picture files in the database. I have created a table with the column datatype BLOB. I would like
to know the sql command to insert a row which will insert a picture in that column and how to display the same once inserted? I have gone through the documentation, but its confusing me!
Thanks friends, i have inserted a row! but what are the options to view the picture which is stored in the database?
no as far as i know you cannot insert a lob value using simple sql commands u can do it thru sql loader or dbms_lob package or oci if interested mail me at hrishys@yahoo.co.uk
LOAD DATA
INFILE 'sample.emp_photo.txt'
INTO TABLE sample.emp_photo
INSERT
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS
(EMPNO,
PHOTO_FORMAT,
PICTURE_FILE FILLER,
PICTURE LOBFILE (PICTURE_FILE) TERMINATED BY EOF)
Best regards, Dmitry
-- http://www.ispirer.com - Database migration tools and services for Oracle and IBM DB2. http://www.ispirer.com/chyfo.html - Tool exports data to CSV flat file, generates CREATE TABLE, CREATE INDEX scripts for Oracle and control files for SQL Loader.
Bookmarks