Choice between clob vs blob column
20197Jan 28 2009 — edited Jan 28 2009I need to store text (eg. *.txt, *.html, *.xml etc) and binary (eg. *.zip, *.doc, *.pdf etc) files in the database. I have two choices:
1) Single blob column.
2) Separate clob and blob columns.
What I have found is that when uploading a text file into a clob column using dbms_lob.loadFromFile, I get garbage. However if I use dbms_lob.loadClobFromFile, the character conversion is handled correctly. I have not tried this, but I guess that if used dbms_lob.loadFromFile to upload a text file into a blob column, I would not have any problems.
What I would like to know if there are other issues I should be aware of with the two choices.
Thanks
Sanjeev