<?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 Updating Document on CMIS in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/updating-document-on-cmis/m-p/258642#M211772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have just get started on CMIS to connect to alfresco and was using chemistry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point I am able to connect and display all the content of my quick starter site using the select * from cmis:document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My goal is to be able to update the content of an html file like the blogs1.html. Is this possible or i am in the wrong road?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anybody here, can show me where to get good example in working with alresco site and be able to update content via web services or CMIS?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2011 15:13:02 GMT</pubDate>
    <dc:creator>brogits</dc:creator>
    <dc:date>2011-04-28T15:13:02Z</dc:date>
    <item>
      <title>Updating Document on CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/updating-document-on-cmis/m-p/258642#M211772</link>
      <description>Hello,I have just get started on CMIS to connect to alfresco and was using chemistry.At this point I am able to connect and display all the content of my quick starter site using the select * from cmis:document.My goal is to be able to update the content of an html file like the blogs1.html. Is this</description>
      <pubDate>Thu, 28 Apr 2011 15:13:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/updating-document-on-cmis/m-p/258642#M211772</guid>
      <dc:creator>brogits</dc:creator>
      <dc:date>2011-04-28T15:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Document on CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/updating-document-on-cmis/m-p/258643#M211773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Apache Chemistry site has an &lt;/SPAN&gt;&lt;A href="http://chemistry.apache.org/java/examples/example-create-update.html" rel="nofollow noopener noreferrer"&gt;Example Code page&lt;/A&gt;&lt;SPAN&gt; that shows how to create and update content via CMIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/archives/2012/01/09/1509" rel="nofollow noopener noreferrer"&gt;this tutorial&lt;/A&gt;&lt;SPAN&gt; covers custom content types, but it also includes some OpenCMIS examples that cover queries, content creation, and association creation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 18:57:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/updating-document-on-cmis/m-p/258643#M211773</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-03-20T18:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Document on CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/updating-document-on-cmis/m-p/258644#M211774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately neither the Example Code page or the tutorial covers updating an existing document with new content, but the &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://chemistry.apache.org/java/developing/guide.html" rel="nofollow noopener noreferrer"&gt;http://chemistry.apache.org/java/developing/guide.html&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;Developing with OpenCMIS guide&amp;lt;/a&amp;gt; covers the process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CmisObject file = session.getObjectByPath(folderPath + "/" + name);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Document docFile = (Document) file;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;byte[] content = ("Hello World!").getBytes("UTF-8");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;InputStream stream = new ByteArrayInputStream(content);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ContentStream contentStream = new ContentStreamImpl(name, BigInteger.valueOf(content.length), "text/plain; charset=UTF-8", stream);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;docFile.setContentStream(contentStream, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 01:46:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/updating-document-on-cmis/m-p/258644#M211774</guid>
      <dc:creator>jevon</dc:creator>
      <dc:date>2013-04-02T01:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Document on CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/updating-document-on-cmis/m-p/258645#M211775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a requirement to append the document with new data. I worked CMIS but unfortunately there is no way to add new content to the existing document. All the methods are updating the document with new content and old data is being deleted. So my question is, is there anyway to append the new content to the existing document? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help on this….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;—&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Naresh Tota&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 11:39:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/updating-document-on-cmis/m-p/258645#M211775</guid>
      <dc:creator>narithota</dc:creator>
      <dc:date>2013-04-29T11:39:12Z</dc:date>
    </item>
  </channel>
</rss>

