Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-558

i am unable down load file from the documentum repository with apache opencmis

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • OpenCMIS 0.7.0
    • OpenCMIS 0.7.0
    • opencmis-client
    • 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.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

      Attachments

        Activity

          People

            Unassigned Unassigned
            laxminarsimha laxmi narsimha dilli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 96h
                96h
                Remaining:
                Remaining Estimate - 96h
                96h
                Logged:
                Time Spent - Not Specified
                Not Specified