简体   繁体   English

在Oracle中存储映像/媒体文件

[英]Storing Images / Media Files in Oracle

I want to store a large number of media files in oracle. 我想在oracle中存储大量媒体文件。 I believe I can store these files in the form of blobs using pl/sql procedure. 我相信我可以使用pl / sql过程以blob的形式存储这些文件。 However I want to make sure there is no impact to resolution / quality of the media file. 但是,我要确保对媒体文件的分辨率/质量没有影响。 Also are there any considerations that I need to account for to store media files in Oracle DB? 我还需要考虑一些在Oracle DB中存储媒体文件的注意事项吗?

By storing and retrieving files in a blob does not impact image quality or resolution. 通过在blob中存储和检索文件不会影响图像质量或分辨率。 Oracle does treat them as binary objects and what you store is what you get when you retrieve. Oracle确实将它们视为二进制对象,并且存储的是您在检索时得到的。

Typically such modifications are done at application layer logic before storing data into blob. 通常,在将数据存储到Blob之前,在应用程序层逻辑上进行此类修改。 In case of text based files, compressing them and storing them would save some disk space, in case of images, typically resolution/image size is modified to reduce file size etc. These are the decisions taken while designing application, as part of application architecture to reduce overall storage requirement. 对于基于文本的文件,将其压缩并存储将节省一些磁盘空间,对于图像,通常会修改分辨率/图像大小以减小文件大小等。这些是在设计应用程序时做出的决定,作为应用程序体系结构的一部分以减少总体存储需求。

Also, consider if this is going to be right design for you. 另外,请考虑这是否适合您的设计。 There are implications in terms of storage requirement, application performance and scalablity. 在存储需求,应用程序性能和可伸缩性方面存在含义。 There are several threads in stackoverflow discussing advantages of storing images in RDBMS vs NoSQL databases vs filesystems. stackoverflow中有多个线程讨论将图像存储在RDBMS,NoSQL数据库和文件系统中的优点。 Also average size of files do matter a lot. 文件的平均大小也很重要。

some links: 一些链接:

Storing images in NoSQL stores 在NoSQL存储中存储图像

NoSQL- Is it suitable for storing images? NoSQL-是否适合存储图像?

Storing very big files in database 在数据库中存储很大的文件

https://softwareengineering.stackexchange.com/questions/150669/is-it-a-bad-practice-to-store-large-files-10-mb-in-a-database https://softwareengineering.stackexchange.com/questions/150669/is-it-a-bad-practice-to-store-large-files-10-mb-in-a-database

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM