chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erwin Moll - Nazca-I" <e.m...@nazcai.nl>
Subject I: problem with getting contentstream of object
Date Fri, 05 Sep 2014 16:15:14 GMT
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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message