将 Oracle BLOB 数据作为块读取

发布于 2024-09-15 03:23:46 字数 352 浏览 1 评论 0原文

我有以下关于从 Oracle 获取 BLOB 数据的查询( 我正在尝试使用 OracleDataReader - .Net 读取 BLOB 值。):

是否可以在不将整个 BLOB 加载到服务器内存的情况下将 Oracle 数据库上的 BLOB 数据作为块读取?我相信 OracleDataReader.GetBytes() 会将整个 blob 加载到服务器内存上。

将空缓冲区传递给 GetBytes() 可获取 BLOB 的大小,但这是否需要将 BLOB 加载到服务器内存上?

以块的形式获取 BLOB 大小和 BLOB 数据而不将整个 BLOB 加载到内存中的最佳方法是什么?

I have the following queries on fetching a BLOB data from Oracle (
I am trying to use OracleDataReader - .Net to read the BLOB value.):

Is it possible to read a BLOB data on Oracle database as chunks without loading the entire BLOB on to server memory? I believe OracleDataReader.GetBytes() will load the entire blob on server memory.

Passing a null buffer on to GetBytes() fetches the size of the BLOB but would that require the BLOB to be loaded on server's memory?

What would be the optimal way to fetch the BLOB size and BLOB data as chunks without loading the entire BLOB in memory?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文