<?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: Can cmis atom binding generate a thumbnail, just like webservices? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/can-cmis-atom-binding-generate-a-thumbnail-just-like-webservices/m-p/312347#M265477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #000000; background: #fafafa; border: 0px; font-size: 14px;"&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;The two different URLs you reference are completely different implementations. The newer releases of Alfresco actually use OpenCMIS under the covers rather than Alfresco's own CMIS implementation. That's why the behavior is different and why it is important to use the proper service URL when working with CMIS and Alfresco. (It looks like you are using the right service URL).&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;Your URL looks a little funky, though. You've got an extra question mark in there that you don't need, for one thing.&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;Here's something you ought to be able to re-create...&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;In my local 4.2.f install I dropped some JPEGs into a test folder then clicked around the UI to trigger a rendition generation. I went to my Node Browser in Alfresco Share and verified that I can see the renditions--they are stored as children of the node they are renditions of.&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;Then, I opened up OpenCMIS Workbench. On the renditions tab I can see the following renditions:&lt;BR /&gt;"doclib","cmis:thumbnail","image/png",12391,"fa398f93-a53d-4a6f-80b1-ffa0dbbf6ec6"&lt;BR /&gt;"imgpreview","alf:webpreview","image/jpeg",337980,"e012a915-ad26-4212-a2b1-9dae628c6944"&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;If I click on the "Object" tab (or the Properties tab, it doesn't matter) I can see that the CMIS object ID is:&lt;BR /&gt;"Object Id","cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId","id",["f1661175-99e5-481b-8097-48943664095d;1.0"]&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;I can look at either rendition by clicking on them within OpenCMIS Workbench, but if I want to fetch the rendition in my browser with a URL, the appropriate URL for the doclib rendition would be:&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.0/atom/content/foo.jpg?id=f1661175-99e5-481b-8097-48943664095d;1.0&amp;amp;streamId=fa398f93-a53d-4a6f-80b1-ffa0dbbf6ec6" style="color: #56a3d9; background: transparent; border: 0px; font-weight: bold; font-size: 14px;" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.0/at...&lt;/A&gt;&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;So that's how you can get the renditions via URL in Alfresco 4.2.&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;Jeff&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background: #fafafa; border: 0px; font-size: 14px;"&gt;&lt;DIV style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px;"&gt;—&lt;/DIV&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;Hire my team for your next project! &lt;A class="" href="http://www.metaversant.com/" rel="nofollow noopener noreferrer" style="color: #56a3d9; background: transparent; border: 0px; font-weight: bold; font-size: 14px;"&gt;Metaversant&lt;/A&gt;&lt;BR /&gt;Blog: &lt;A class="" href="http://ecmarchitect.com/" rel="nofollow noopener noreferrer" style="color: #56a3d9; background: transparent; border: 0px; font-weight: bold; font-size: 14px;"&gt;ecmarchitect.com&lt;/A&gt; | Twitter: jeffpotts01&lt;BR /&gt;CMIS APIs: &lt;A class="" href="http://chemistry.apache.org/" rel="nofollow noopener noreferrer" style="color: #56a3d9; background: transparent; border: 0px; font-weight: bold; font-size: 14px;"&gt;Apache Chemistry&lt;/A&gt; | &lt;A class="" href="http://affiliate.manning.com/idevaffiliate.php?id=1243_318" rel="nofollow noopener noreferrer" style="color: #56a3d9; background: transparent; border: 0px; font-weight: bold; font-size: 14px;"&gt;CMIS and Apache Chemistry in Action&lt;/A&gt;&lt;BR /&gt;Alfresco tutorials: &lt;A class="" href="http://ecmarchitect.com/alfresco-developer-series" rel="nofollow noopener noreferrer" style="color: #56a3d9; background: transparent; border: 0px; font-weight: bold; font-size: 14px;"&gt;Alfresco Developer Series&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2014 05:17:36 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2014-11-21T05:17:36Z</dc:date>
    <item>
      <title>Can cmis atom binding generate a thumbnail, just like webservices?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-cmis-atom-binding-generate-a-thumbnail-just-like-webservices/m-p/312345#M265475</link>
      <description>I successfully used the webpreview (cmis:thumbnail rendition) with Alfresco 4.2.cTo connect my cmis client with the repository, I used this URL: http://localhost:8080/alfresco/service/cmis‍‍‍Now I upgrade to Alfresco 4.2f and I tried the "more or less" new atom-binding with this URL:http://localhost</description>
      <pubDate>Wed, 12 Nov 2014 16:36:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-cmis-atom-binding-generate-a-thumbnail-just-like-webservices/m-p/312345#M265475</guid>
      <dc:creator>alfresco-jan</dc:creator>
      <dc:date>2014-11-12T16:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can cmis atom binding generate a thumbnail, just like webservices?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-cmis-atom-binding-generate-a-thumbnail-just-like-webservices/m-p/312346#M265476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah, ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The CMIS REST Client interferes with the CMIS REST API&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And the CMIS WS Client interferes with the CMIS Web Services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hmmm. Therefore there is a Alfresco WebService which generates the thumbnail and this is not known to the REST API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I read (cmis-article.pdf -&amp;gt; Getting Started with CMIS).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 16:54:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-cmis-atom-binding-generate-a-thumbnail-just-like-webservices/m-p/312346#M265476</guid>
      <dc:creator>alfresco-jan</dc:creator>
      <dc:date>2014-11-12T16:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can cmis atom binding generate a thumbnail, just like webservices?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-cmis-atom-binding-generate-a-thumbnail-just-like-webservices/m-p/312347#M265477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #000000; background: #fafafa; border: 0px; font-size: 14px;"&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;The two different URLs you reference are completely different implementations. The newer releases of Alfresco actually use OpenCMIS under the covers rather than Alfresco's own CMIS implementation. That's why the behavior is different and why it is important to use the proper service URL when working with CMIS and Alfresco. (It looks like you are using the right service URL).&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;Your URL looks a little funky, though. You've got an extra question mark in there that you don't need, for one thing.&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;Here's something you ought to be able to re-create...&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;In my local 4.2.f install I dropped some JPEGs into a test folder then clicked around the UI to trigger a rendition generation. I went to my Node Browser in Alfresco Share and verified that I can see the renditions--they are stored as children of the node they are renditions of.&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;Then, I opened up OpenCMIS Workbench. On the renditions tab I can see the following renditions:&lt;BR /&gt;"doclib","cmis:thumbnail","image/png",12391,"fa398f93-a53d-4a6f-80b1-ffa0dbbf6ec6"&lt;BR /&gt;"imgpreview","alf:webpreview","image/jpeg",337980,"e012a915-ad26-4212-a2b1-9dae628c6944"&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;If I click on the "Object" tab (or the Properties tab, it doesn't matter) I can see that the CMIS object ID is:&lt;BR /&gt;"Object Id","cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId","id",["f1661175-99e5-481b-8097-48943664095d;1.0"]&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;I can look at either rendition by clicking on them within OpenCMIS Workbench, but if I want to fetch the rendition in my browser with a URL, the appropriate URL for the doclib rendition would be:&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.0/atom/content/foo.jpg?id=f1661175-99e5-481b-8097-48943664095d;1.0&amp;amp;streamId=fa398f93-a53d-4a6f-80b1-ffa0dbbf6ec6" style="color: #56a3d9; background: transparent; border: 0px; font-weight: bold; font-size: 14px;" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.0/at...&lt;/A&gt;&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;So that's how you can get the renditions via URL in Alfresco 4.2.&lt;/P&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;Jeff&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #000000; background: #fafafa; border: 0px; font-size: 14px;"&gt;&lt;DIV style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px;"&gt;—&lt;/DIV&gt;&lt;P style="background: transparent; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 10px 1rem 0px;"&gt;Hire my team for your next project! &lt;A class="" href="http://www.metaversant.com/" rel="nofollow noopener noreferrer" style="color: #56a3d9; background: transparent; border: 0px; font-weight: bold; font-size: 14px;"&gt;Metaversant&lt;/A&gt;&lt;BR /&gt;Blog: &lt;A class="" href="http://ecmarchitect.com/" rel="nofollow noopener noreferrer" style="color: #56a3d9; background: transparent; border: 0px; font-weight: bold; font-size: 14px;"&gt;ecmarchitect.com&lt;/A&gt; | Twitter: jeffpotts01&lt;BR /&gt;CMIS APIs: &lt;A class="" href="http://chemistry.apache.org/" rel="nofollow noopener noreferrer" style="color: #56a3d9; background: transparent; border: 0px; font-weight: bold; font-size: 14px;"&gt;Apache Chemistry&lt;/A&gt; | &lt;A class="" href="http://affiliate.manning.com/idevaffiliate.php?id=1243_318" rel="nofollow noopener noreferrer" style="color: #56a3d9; background: transparent; border: 0px; font-weight: bold; font-size: 14px;"&gt;CMIS and Apache Chemistry in Action&lt;/A&gt;&lt;BR /&gt;Alfresco tutorials: &lt;A class="" href="http://ecmarchitect.com/alfresco-developer-series" rel="nofollow noopener noreferrer" style="color: #56a3d9; background: transparent; border: 0px; font-weight: bold; font-size: 14px;"&gt;Alfresco Developer Series&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 05:17:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-cmis-atom-binding-generate-a-thumbnail-just-like-webservices/m-p/312347#M265477</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-11-21T05:17:36Z</dc:date>
    </item>
  </channel>
</rss>

