<?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: Get document by file:content/data in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/get-document-by-file-content-data/m-p/317966#M4967</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You can get example from the  &lt;A href="https://doc.nuxeo.com/nxdoc/search-endpoints/"&gt;Documentation page on REST API&lt;/A&gt;
to have example to query documents in Nuxeo  with the REST API.&lt;/P&gt;
&lt;P&gt;Then, here are some &lt;A href="https://doc.nuxeo.com/nxdoc/file-storage/#file-urls-download-url-file-format"&gt;File URLs&lt;/A&gt;
you can use to get the blob(s) attached to the document.&lt;/P&gt;
&lt;P&gt;You can also use the &lt;A href="https://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform%20LTS%202019-10.10/viewOperation/Document.GetBlob"&gt;Document.GetBlob&lt;/A&gt; automation operation  using the &lt;A href="https://doc.nuxeo.com/rest-api/1/automation-endpoint/"&gt;Automation REST API calls&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Sat, 11 Apr 2020 11:05:47 GMT</pubDate>
    <dc:creator>Gregory_Carlin</dc:creator>
    <dc:date>2020-04-11T11:05:47Z</dc:date>
    <item>
      <title>Get document by file:content/data</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-document-by-file-content-data/m-p/317965#M4966</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I would like to execute a query that would return to me the document based on the file:content/data field.
I have tried several different ways of writing the query down but nothing seems to be working for me.&lt;/P&gt;
&lt;P&gt;Could you please tell me is it (and how) possible to retrieve a document via REST API or .NET Client based on the download link of the asset(file:content/data)?&lt;/P&gt;
&lt;P&gt;I look forward to hearing from you!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 19:11:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-document-by-file-content-data/m-p/317965#M4966</guid>
      <dc:creator>robert_scholz</dc:creator>
      <dc:date>2020-04-08T19:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get document by file:content/data</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-document-by-file-content-data/m-p/317966#M4967</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You can get example from the  &lt;A href="https://doc.nuxeo.com/nxdoc/search-endpoints/"&gt;Documentation page on REST API&lt;/A&gt;
to have example to query documents in Nuxeo  with the REST API.&lt;/P&gt;
&lt;P&gt;Then, here are some &lt;A href="https://doc.nuxeo.com/nxdoc/file-storage/#file-urls-download-url-file-format"&gt;File URLs&lt;/A&gt;
you can use to get the blob(s) attached to the document.&lt;/P&gt;
&lt;P&gt;You can also use the &lt;A href="https://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform%20LTS%202019-10.10/viewOperation/Document.GetBlob"&gt;Document.GetBlob&lt;/A&gt; automation operation  using the &lt;A href="https://doc.nuxeo.com/rest-api/1/automation-endpoint/"&gt;Automation REST API calls&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2020 11:05:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-document-by-file-content-data/m-p/317966#M4967</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-04-11T11:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get document by file:content/data</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/get-document-by-file-content-data/m-p/317967#M4968</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you very much for your answer. I have read the documentation you suggested but as far as I see it the issue is still there. When I execute the following query&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM Document WHERE file:content/name='correctName' AND ecm:isTrashed=0
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get the result that I expect. This is true for any other field under file:content  (ex. file:content/digest also returns a valid response) except of file:content/data.
I was able to solve the problem from the question, but I am still a bit curious as to why the file:content/data search is not working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 15:10:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/get-document-by-file-content-data/m-p/317967#M4968</guid>
      <dc:creator>robert_scholz</dc:creator>
      <dc:date>2020-04-16T15:10:08Z</dc:date>
    </item>
  </channel>
</rss>

