chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Luís Vaquero <jlvaquerocue...@gmail.com>
Subject DotCMIS Document's Name and FileName.
Date Wed, 25 Apr 2012 09:02:22 GMT
Hi. I'm creating a Doc in alfresco with Name = "Hello World" and FileName
"hello-world.txt"

           Dim properties As IDictionary(Of String, Object) = New
Dictionary(Of String, Object)()
            properties(PropertyIds.Name) = "Hello World"
            properties(PropertyIds.ObjectTypeId) =
Enums.CmisValue.GetCmisValue(Enums.BaseTypeId.CmisDocument)
            Dim contentStream As Data.Impl.ContentStream = New
Data.Impl.ContentStream()
            contentStream.FileName = "hello-world.txt"
            contentStream.MimeType = "text/plain"
            contentStream.Length = content.Length
            contentStream.Stream = new Filestream("hello-world.txt",
FileMode.Open)
            folder.CreateDocument(properties, contentStream, Nothing)

But when I fetch the Document by Id

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