If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > BLOB, CLOB, DBCLOB, what to use ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-14-05, 07:10
Wim Wim is offline
Registered User
 
Join Date: Nov 2004
Posts: 1,279
BLOB, CLOB, DBCLOB, what to use ?

We must be able to store and retrieve ALL the documents (PDF, Word .doc, ASCII, .RTF, XML, HTML, ...) our application generates.

- What is the best data type to store these documents in? BLOB, CLOB, DBCLOB ?
- How does one store/retrieve a Java object in/from a xLOB ?

Any references, comments, ... are very much appreciated.
__________________
With kind regards . . . . . SQL Server 2000/2005/2008/2008 R2 Earned beers: 16
Wim
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald Knuth
Grabel's Law: 2 is not equal to 3 -- not even for very large values of 2.
Pat Phelan's Law: 2 very definitely CAN equal 3 -- in at least two programming languages
Reply With Quote
  #2 (permalink)  
Old 11-14-05, 09:50
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
I would imagine you're looking for a BLOB for most of those, since you're dealing with binary data. ie. PDF, Word.

However, if you chose BLOB then be aware that for your non-binary files (ie. HTML, .txt) there will be no codepage conversion. What you INSERT is what will be there.

There are examples of accessing CLOB/BLOB/etc in sqllib/samples/java, they're as good as anything I could post for you here so check them out first, and ask any questions you might have about them.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 11-14-05, 09:51
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
lob

probably a blob to keep any type of document
for references see : http://www.dbforums.com/t1198711.html
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On