DFC读取文件 [英] DFC reading a file

查看:130
本文介绍了DFC读取文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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?

推荐答案

假设您还拥有一个至少具有该文件读取权限的有效会话: / p>

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();

查看返回类型的javadocs 这里有关如何处理退货的信息。我也注意到你一直在问一些Documentum Foundation Classes问题。根据您使用的DFC版本,您可以通过 powerlink subscribenet ,可能会回答您自己的许多问题。

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.

这篇关于DFC读取文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆