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: DotCMIS Document's Name and FileName.
Date Wed, 25 Apr 2012 09:15:12 GMT
 Hi José,

 That depends on the repository. Some repository preserve the filename, 
 others don't.


 - Florian


>>
>> 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
View raw message