Oracle and programming

帅比萌擦擦* 提交于 2019-12-11 13:59:46

问题


I just wanted to know how I can store a picture in oracle data base ;


回答1:


Well, as with anything in oracle, there are a handful of ways to store a photo. You can store it as a BLOB and should be pretty easy to implement loading photos into that type of field. A blob (in 10g) can store up to 8 terabytes in size.

You could also use the READ_IMAGE_FILE and WRITE_IMAGE_FILE functions built into oracle forms and use a RAW datatype as opposed to a BLOB datatype.

References:

Asktom on READ_IMAGE_FILE and WRITE_IMAGE_FILE

Oracle 10g Native Datatypes - Overview of LOB Datatypes



来源:https://stackoverflow.com/questions/4231894/oracle-and-programming

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