<?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: Document.BlobGet VS Repository.GetDocument in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/document-blobget-vs-repository-getdocument/m-p/328609#M15610</link>
    <description>&lt;P&gt;pibou Bouvret&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2016 17:26:26 GMT</pubDate>
    <dc:creator>olaf_</dc:creator>
    <dc:date>2016-05-26T17:26:26Z</dc:date>
    <item>
      <title>Document.BlobGet VS Repository.GetDocument</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-blobget-vs-repository-getdocument/m-p/328607#M15608</link>
      <description>&lt;P&gt;Can someone explain to me the difference between Blob.Get and Document.Fetch or nowadays called: &lt;A href="http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20DM-7.10/viewOperation/Document.GetBlob"&gt;Document.GetBlob&lt;/A&gt; and &lt;A href="http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20DM-7.10/viewOperation/Repository.GetDocument"&gt;Repository.GetDocument&lt;/A&gt; ?&lt;/P&gt;
&lt;P&gt;At first I was under the impression that getDocument would download the document and getBlob could download attachments to a document, but this seems to be wrong when I play with it using the REST API (in PHP).&lt;/P&gt;
&lt;P&gt;Document.Fetch results in my case in an object with meta-data of the document instead of the document itself.&lt;/P&gt;
&lt;P&gt;Blob.Get results in error 666 (no message!) in my own code. Next I tried &lt;A href="https://github.com/nuxeo/nuxeo-automation-php-client/blob/master/samples/B5bis.php"&gt;PHP samplecode B5bis.php&lt;/A&gt; which I adapted to my own situation (I changed the filename/path to fit to the contents of my Nuxeo server). This resulted in:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;http-bio-0.0.0.0-8080-exec-382] [org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper] Exception in JAX-RS process&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;which originates from:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;gt; ****** chain ******
Name: Document.GetBlob
Aliases: [Blob.Get]
Exception: TypeAdaptException
Caught error: org.nuxeo.ecm.core.api.DocumentNotFoundException: /default-domain/workspaces/Trial workspace/Olympia/mydoc.pdf
Caused by: org.nuxeo.ecm.core.api.DocumentNotFoundException: /default-domain/workspaces/Trial workspace/Olympia/mydoc.pdf
        org.nuxeo.ecm.automation.core.operations.blob.GetDocumentBlob
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 26 May 2016 13:42:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-blobget-vs-repository-getdocument/m-p/328607#M15608</guid>
      <dc:creator>olaf_</dc:creator>
      <dc:date>2016-05-26T13:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Document.BlobGet VS Repository.GetDocument</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-blobget-vs-repository-getdocument/m-p/328608#M15609</link>
      <description>&lt;P&gt;Repository.GetDocument retrieves the document : system info and properties (schemas)&lt;/P&gt;
&lt;P&gt;whereas Document.GetBlob retrieves one of the binary file associated with a document&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 13:57:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-blobget-vs-repository-getdocument/m-p/328608#M15609</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-05-26T13:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Document.BlobGet VS Repository.GetDocument</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/document-blobget-vs-repository-getdocument/m-p/328609#M15610</link>
      <description>&lt;P&gt;pibou Bouvret&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 17:26:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/document-blobget-vs-repository-getdocument/m-p/328609#M15610</guid>
      <dc:creator>olaf_</dc:creator>
      <dc:date>2016-05-26T17:26:26Z</dc:date>
    </item>
  </channel>
</rss>

