DFC读取文件

发布于 2024-07-13 05:30:45 字数 94 浏览 5 评论 0原文

我正在使用 DFC 访问 documentum。 我正在尝试读取一个文件。 我有 r_object_id,现在希望返回与此相关的文档。 我将如何在java中做到这一点?

I am using the DFC to access documentum. I am trying to read a file. I have the r_object_id and I now wish to return the document assoicated with this. How would I do this in java?

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

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

发布评论

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

评论(1

把昨日还给我 2024-07-20 05:30:45

假设您还有一个有效会话,至少具有对该文件的读取访问权限:

String docId= getDocId();
IDfSysObject doc = (IDfSysObject)session.getObject(new DfId(docId));
ByteArrayInputStream stream = doc.getContent();

请参阅 javadocs 以了解返回类型 此处 了解如何处理返回的信息。 我还注意到您提出了很多 Documentum 基础课程问题。 根据您使用的 DFC 版本,您可以在 powerlinksubscribenet 并可能回答您自己的许多问题。

assuming you also have a valid session with at least read access to the file:

String docId= getDocId();
IDfSysObject doc = (IDfSysObject)session.getObject(new DfId(docId));
ByteArrayInputStream stream = doc.getContent();

see the javadocs for the return type here for info on how to process the return. Also I've noticed you've been asking quite a few Documentum Foundation Classes questions. depending on the version of the DFCs you are using, you can find the javadocs online at either powerlink or subscribenet and probably answer many of your own questions.

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