Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
OpenCMIS 0.7.0
-
Windows-xp
Description
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.close();
is.close();
}catch(Exception e)
{ e.printStackTrace(); }Please Let me know how to down load the content from documentum repository