<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DotCMIS content update writing first byte only in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/dotcmis-content-update-writing-first-byte-only/m-p/309012#M262142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And your mimetype is wrong.&amp;nbsp; Should be "text/plain"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Mar 2014 10:14:00 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2014-03-11T10:14:00Z</dc:date>
    <item>
      <title>DotCMIS content update writing first byte only</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dotcmis-content-update-writing-first-byte-only/m-p/309010#M262140</link>
      <description>HalloI'm trying to update a document content using DotCMIS and C#, but the content is getting the first byte only.I followed an example I found over the net (here) and matching it with Apache CMIS documentation written in Java (here).In any way I'm getting a file with the first character only, eg. "</description>
      <pubDate>Mon, 10 Mar 2014 21:32:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dotcmis-content-update-writing-first-byte-only/m-p/309010#M262140</guid>
      <dc:creator>lordzoster</dc:creator>
      <dc:date>2014-03-10T21:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: DotCMIS content update writing first byte only</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dotcmis-content-update-writing-first-byte-only/m-p/309011#M262141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can't help you with th c# bits.&amp;nbsp; But &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a) can you specify the content encoding anywhere?&amp;nbsp; In particular in the contentstream.&amp;nbsp;&amp;nbsp; I'm wondering if the default will be some windows charset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;B) There's equivalent string to byte conversion methods in java that do not specify charset.&amp;nbsp;&amp;nbsp; They are a menace and a frequent source of bugs and should be avoided ( for methods that do specify the charset)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C) the length of your variable bytes is dodgy.&amp;nbsp; UTF8 is 1 to 4 bytes per char.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 08:44:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dotcmis-content-update-writing-first-byte-only/m-p/309011#M262141</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-03-11T08:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: DotCMIS content update writing first byte only</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dotcmis-content-update-writing-first-byte-only/m-p/309012#M262142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And your mimetype is wrong.&amp;nbsp; Should be "text/plain"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 10:14:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dotcmis-content-update-writing-first-byte-only/m-p/309012#M262142</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-03-11T10:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: DotCMIS content update writing first byte only</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dotcmis-content-update-writing-first-byte-only/m-p/309013#M262143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hallo thank you, the problem was actually encoding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I solved using System.Text.Encoding.UTF8.GetBytes(string) that, along with "charset=UTF-8", gave the correct results.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 10:43:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dotcmis-content-update-writing-first-byte-only/m-p/309013#M262143</guid>
      <dc:creator>lordzoster</dc:creator>
      <dc:date>2014-03-11T10:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: DotCMIS content update writing first byte only</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dotcmis-content-update-writing-first-byte-only/m-p/309014#M262144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why is "application/msword" wrong mimetype for creating a word binary file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually the file now gets created correctly, and when viewed offline is OK, but Alfresco states it cannot preview the file content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my project I'm going to programmatically create a in-memory DOCX using OpenXML SDK and then upload it to Alfresco via CMIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How else could I upload/create (if not exists) a binary file like this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 10:49:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dotcmis-content-update-writing-first-byte-only/m-p/309014#M262144</guid>
      <dc:creator>lordzoster</dc:creator>
      <dc:date>2014-03-11T10:49:00Z</dc:date>
    </item>
  </channel>
</rss>

