(text + images ) files in Oracle

2019-09-02 05:00发布

I am using Oracle 10g.

My Java program gets some files having huge text contents + images. I want to Store Data (having text files with Images) in oracle. What is the best way to to insert and retrieve the data from Oracle DB.

Should i use BLOBs or CLOBS?

Should i use XML data types?

Should i use Oracle Text datatype?

Please suggest the best practice. Its pretty urgent.

标签: oracle10g
1条回答
倾城 Initia
2楼-- · 2019-09-02 05:43

If the values may include binary data such as images, then BLOB is your best bet.

If the values only contain text, then CLOB should be fine.

If the values only contain XML, then either CLOB or XMLType may be used - you'll need to work out which is better for your situation - more info here: http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16659/xdb01int.htm#ADXDB0120

查看更多
登录 后发表回答