AnsweredAssumed Answered

How to get the Content from Repository

Question asked by rameshbelli on Mar 2, 2010
Latest reply on Mar 5, 2010 by nikes
Hi all, I tried the getContentStream method in the ObjectService and my request is like this

<getContentStream xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
  <repositoryId>84ccfe80-b325-4d79-ab4d-080a4bdd045b</repositoryId>
  <objectId>workspace://SpacesStore/4dd547c7-e13f-41cf-83b8-ee508843917c;1.0</objectId>
</getContentStream>

and I got a response back like this

<getContentStreamResponse xmlns:ns2="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <contentStream>
    <length>482</length>
    <mimeType>text/xml</mimeType>
    <filename>gfaith-XML</filename>
    <stream>
      <xop:Include href="cid:4c4c6129-bc9b-413e-814f-3f22de3ed830-6@docs.oasis-open.org" xmlns:xop="http://www.w3.org/2004/08/xop/include'/>
    </stream>
  </contentStream>
</getContentStreamResponse>

My question is how to get the Content  in bytes[].

I called getStream() method which was in CmisContentStream object and I get null value.

Any help is greatly appreciated.

Ramesh

Outcomes