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 Re: DotCMIS Document's Name and FileName.
Date Wed, 25 Apr 2012 09:11:13 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 I get "Hello World" in both fields.
> FileName is lost...
>

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