如何在 Oracle 中存储 TIFF 文件?
我有一个 ASP.NET 应用程序(vb.net 代码隐藏),由于它在一台服务器共享中存储 TIFF 文件,因此存在严重的性能问题。现在那里有超过一百万个 .TIF 文件!该应用程序跟踪财产的扫描图像与 Oracle 数据库表中的相应行。我们认为最好将图像本身存储在新的 Oracle 表中。这怎么能做到呢?
我们正在考虑的替代解决方案是将服务器共享按状态拆分为多个文件夹(OH 文件夹、WV 文件夹、VA 文件夹等)。从长远来看,数据库选项可能更有意义,但是如何我们做吗?能否将 TIFF 存储在 BLOB 列中,然后使用 .NET 将其提取回 TIFF 格式?有人知道怎么做吗?
I have an ASP.NET application (vb.net codebehind) that has serious performance problems because of its storage of TIFF files in one server share. There are over a million .TIF files there now! The application tracks the scanned images of property with a corresponding row in an Oracle database table. We have this idea that it might be better to store the images themselves in a new Oracle table. How can this be done?
The alternative solution we are thinking of is to split up the server share into multiple folders by State (an OH folder, a WV folder, a VA folder, etc.) Seems like the database option might make more sense long-term, but how do we do it? Can a TIFF be stored in a BLOB column and then extracted back into TIFF format using .NET? Anyone know how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,您可以以 Oracle 的 BLOB 数据类型存储 TIFF 文件。
查看此链接以使用 ADO.NET 获取 BLOB 字段内容。
Yes, you can store a TIFF file in Oracle's BLOB data type.
Check out this link to get BLOB field contents with ADO.NET.
除了存储在数据库中之外,如果将一千个文件分成不同的文件夹中,性能应该会提高很多。
在 Windows 环境中,具有大量文件的文件夹的性能会严重下降
Besides from storing in a database, if you separate groups of one thousand files in different folders, performance should increase a lot.
Folders with a very high number of files get a severe downgrade in performance when in a windows enviroment