Hello,

 

Using DotCMIS 0.7 version and trying to download a document using  

                    IObjectId _oid =
session.CreateObjectId(co["cmis:objectId"].FirstValue.ToString());

                    IDocument cmdoc = session.GetObject(_oid) as
IDocument;

                    IContentStream retdoc = cmdoc.GetContentStream();

 

 

I get an error on the GetObject (_oid)  on resolving the object to an
IDocument I get an CMISRuntimeException:

 

Property 'gu:letterCharacteristic' doesn't exist!

 

   at DotCMIS.Client.Impl.ObjectFactory.ConvertProperty(IObjectType
objectType, IPropertyData pd)

   at DotCMIS.Client.Impl.ObjectFactory.ConvertProperties(IObjectType
objectType, IProperties properties)

   at DotCMIS.Client.Impl.AbstractCmisObject.Initialize(ISession
session, IObjectType objectType, IObjectData objectData,
IOperationContext context)

   at DotCMIS.Client.Impl.Document..ctor(ISession session, IObjectType
objectType, IObjectData objectData, IOperationContext context)

   at DotCMIS.Client.Impl.ObjectFactory.ConvertObject(IObjectData
objectData, IOperationContext context)

   at DotCMIS.Client.Impl.Session.GetObject(String objectId,
IOperationContext context)

   at DotCMIS.Client.Impl.Session.GetObject(IObjectId objectId,
IOperationContext context)

   at DotCMIS.Client.Impl.Session.GetObject(IObjectId objectId)

 

 

The object has extended properties (found this out on using the
CMisWorkbech).

 

I'm only interested in getting the actual stream and not the properties
so I tried to do the same with 
session.GetContentStream(_oid);

 

but then the stream is empty :

 

[DotCMIS.Data.Impl.ContentStream]: {DotCMIS.Data.Impl.ContentStream}

    FileName: null

    Length: null

    MimeType: "application/pdf"

    Stream: {System.IO.BufferedStream}

 

How can i resolve this quickly ?

Thanks in advance,

Erwin Moll

Reply via email to