How to (or can I even) concatenate BLOB

One practice for storing images files is creating a table with a column (named IMG) of the BLOB data type, then inserting each image into the table. The result is the table contains multiple records:
ROW1: img1
ROW2: img2
ROW3: img3
ROW4: img4
Now, for some reason I need to concatenate the image data (not combine them), just concatenate them one after another, into one record, then store it in the table, logically speaking, it will be like this: img1 | img2 | img2 | img4
When I need it later, I'll issue a SELECT statement such as
SELECT img into v_img from TABLE_NAME where id = '12345';
next I need to separate and restore the v_img back to its individual image, i.e., img1, img2, img3, and img4.
I just wonder can I even do this?
Thanks
Scott

Hello;
I don't believe that's possible in the database. A blob is just a set of binary-data. One set.
I would post more about your exact requirements.
Creating a Table Containing One or More LOB Columns
http://docs.oracle.com/cd/E11882_01/appdev.112/e18294/adlob_ddl.htm#i1007083
Oracle Database SecureFiles and Large Objects Developer's Guide:
http://docs.oracle.com/cd/E11882_01/appdev.112/e18294/toc.htm
LOB Storage Parameters
http://docs.oracle.com/cd/E11882_01/appdev.112/e18294/adlob_tables.htm#CIHEBABG
Multimedia User's Guide
http://docs.oracle.com/cd/E11882_01/appdev.112/e10777/toc.htm
Best Regards
mseberg
Edited by: mseberg on Mar 12, 2012 12:06 PM

Similar Messages

Maybe you are looking for