chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (CMIS-558) i am unable down load file from the documentum repository with apache opencmis
Date Wed, 08 Aug 2012 12:56:20 GMT

     [ https://issues.apache.org/jira/browse/CMIS-558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Florian Müller resolved CMIS-558.
---------------------------------

    Resolution: Won't Fix

Please use the mailing list [1] for questions like this. This is a bug tracker.

[1] http://mail-archives.apache.org/mod_mbox/chemistry-dev/
                
> 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
>              Labels: test
>             Fix For: OpenCMIS 0.7.0
>
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
> 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

       

Mime
View raw message