laxmi narsimha dilli created CMIS-558:
-----------------------------------------
Summary: i am unable down load file from the documentum repository
with apache opencmis
Key: CMIS-558
URL: https://issues.apache.org/jira/browse/CMIS-558
Project: Chemistry
Issue Type: Bug
Components: opencmis-client
Affects Versions: OpenCMIS 0.7.0
Environment: Windows-xp
Reporter: laxmi narsimha dilli
Fix For: OpenCMIS 0.7.0
i am using below code it is writing as empty file on destination path.
CmisObject object = session.getObject(ObjId);
document = (Document) object;
String filename = document.getName();
ContentStream stream=document.getContentStream(null);
InputStream is=stream.getStream();
try{
File f = new File("c:\\"+filename);
OutputStream out = new FileOutputStream(f);
byte buf[]=new byte[1024*1024];
int len;
while((len=is.read(buf))>0){
out.write(buf,0,len);
System.out.println("input stream:");
}
out.close();
is.close();
}catch(Exception e){
e.printStackTrace();
}
Please Let me know how to down load the content from documentum repository
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira