<?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: How to force conversion of media asset by remote client call in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-force-conversion-of-media-asset-by-remote-client-call/m-p/316988#M3989</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;There is no operation yet to trigger the conversions of Pictures or Videos.&lt;/P&gt;
&lt;P&gt;For Videos, you can use the &lt;A href="http://community.nuxeo.com/api/nuxeo/5.8/javadoc/org/nuxeo/ecm/platform/video/service/VideoService.html"&gt;VideoService&lt;/A&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;VideoService#launchConvertion&lt;/CODE&gt; to launch a specific conversion&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;VideoService#launchAutomaticConversions&lt;/CODE&gt; to launch all the registered automatic conversions&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For Pictures, the easiest way for now is to reset the main blob on the Picture: that will trigger all the default conversions:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;BlobHolder blobHolder = doc.getAdapter(BlobHolder.class);
if (blobHolder.getBlob() != null) {
    blobHolder.setBlob(blobHolder.getBlob());
    documentManager.saveDocument(doc);
    documentManager.save();
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 13 Jan 2014 11:53:29 GMT</pubDate>
    <dc:creator>Thomas_Roger</dc:creator>
    <dc:date>2014-01-13T11:53:29Z</dc:date>
    <item>
      <title>How to force conversion of media asset by remote client call</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-force-conversion-of-media-asset-by-remote-client-call/m-p/316987#M3988</link>
      <description>&lt;P&gt;Hi all,
it there a way to force conversion of media asset by remote client call?
If not, how to do it using local API?&lt;/P&gt;
&lt;P&gt;Tnx a lot!
M-&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2013 11:40:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-force-conversion-of-media-asset-by-remote-client-call/m-p/316987#M3988</guid>
      <dc:creator>maumig_</dc:creator>
      <dc:date>2013-12-20T11:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to force conversion of media asset by remote client call</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-force-conversion-of-media-asset-by-remote-client-call/m-p/316988#M3989</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;There is no operation yet to trigger the conversions of Pictures or Videos.&lt;/P&gt;
&lt;P&gt;For Videos, you can use the &lt;A href="http://community.nuxeo.com/api/nuxeo/5.8/javadoc/org/nuxeo/ecm/platform/video/service/VideoService.html"&gt;VideoService&lt;/A&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;VideoService#launchConvertion&lt;/CODE&gt; to launch a specific conversion&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;VideoService#launchAutomaticConversions&lt;/CODE&gt; to launch all the registered automatic conversions&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;For Pictures, the easiest way for now is to reset the main blob on the Picture: that will trigger all the default conversions:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;BlobHolder blobHolder = doc.getAdapter(BlobHolder.class);
if (blobHolder.getBlob() != null) {
    blobHolder.setBlob(blobHolder.getBlob());
    documentManager.saveDocument(doc);
    documentManager.save();
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jan 2014 11:53:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-force-conversion-of-media-asset-by-remote-client-call/m-p/316988#M3989</guid>
      <dc:creator>Thomas_Roger</dc:creator>
      <dc:date>2014-01-13T11:53:29Z</dc:date>
    </item>
  </channel>
</rss>

