chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller <f...@apache.org>
Subject Re: IDocument.GetContentStream.Stream never returns.
Date Fri, 20 Apr 2012 12:41:12 GMT
 Hi José,

 The stream is never a FileStream. Depending on the binding it is either 
 a MemoryStream or a BufferedStream.

 - Florian



> Hi. I'm creating and fetching a document (plain txt) in Alfresco 
> Enterprise
> 3.3 with DotCMIS.
>
> Creating document is OK. Alfresco shows the doc in the right folder 
> and the
> content is right. But when I fetch the doc by ID and try to recover 
> the
> stream the app blocks because the method call never returns. Can 
> somboy
> help me?
>
> Source code:
>
>     Dim id As Client.IObjectId = New Client.Impl.ObjectId(docId)
>      Dim doc As Client.IDocument = TryCast(_sesion.GetObject(id),
> Client.IDocument)
>
>      repoDoc.Id = doc.Id // OK
>             repoDoc.Name = doc.Name // OK
>             repoDoc.FileName = doc.GetContentStream.FileName //OK
>             repoDoc.MimeType = doc.GetContentStream.MimeType //OK
>             repoDoc.Content = CType(doc.GetContentStream.Stream,
> FileStream) //Never returns.
>
>             Return repoDoc


Mime
View raw message