(text + images ) files in Oracle

…衆ロ難τιáo~ 提交于 2019-12-13 04:34:12

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/5481841/text-images-files-in-oracle

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!