<?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 How can I get size of the uploaded image in KBs or MBs while searching in Nuxeo in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-size-of-the-uploaded-image-in-kbs-or-mbs-while/m-p/318873#M5874</link>
    <description>&lt;P&gt;I am using below URL, request and headers. I want to get size of the image in KBs or MBs uploaded in Nuxeo. The key with &lt;STRONG&gt;dms:&lt;/STRONG&gt; prefix are custom fields. How can I get the size?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Endpoint&lt;/STRONG&gt;: /site/automation/Repository.Query&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Request&lt;/STRONG&gt;
{
"params" : {
"query" : "select * from Document WHERE dms:case_id ='Test602'  AND ecm:isTrashed = 0  AND dms:applicant_id = '0'  AND dms:tenant_id = '1'  AND ecm:versionVersionableId IS NULL ",
"pageSize" : "30",
"language" : "NXQL",
"currentPageIndex" : "0"
}
}&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Headers&lt;/STRONG&gt;
X-NXProperties:*&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2020 11:05:55 GMT</pubDate>
    <dc:creator>Ankush_Bandil</dc:creator>
    <dc:date>2020-04-14T11:05:55Z</dc:date>
    <item>
      <title>How can I get size of the uploaded image in KBs or MBs while searching in Nuxeo</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-size-of-the-uploaded-image-in-kbs-or-mbs-while/m-p/318873#M5874</link>
      <description>&lt;P&gt;I am using below URL, request and headers. I want to get size of the image in KBs or MBs uploaded in Nuxeo. The key with &lt;STRONG&gt;dms:&lt;/STRONG&gt; prefix are custom fields. How can I get the size?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Endpoint&lt;/STRONG&gt;: /site/automation/Repository.Query&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Request&lt;/STRONG&gt;
{
"params" : {
"query" : "select * from Document WHERE dms:case_id ='Test602'  AND ecm:isTrashed = 0  AND dms:applicant_id = '0'  AND dms:tenant_id = '1'  AND ecm:versionVersionableId IS NULL ",
"pageSize" : "30",
"language" : "NXQL",
"currentPageIndex" : "0"
}
}&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Headers&lt;/STRONG&gt;
X-NXProperties:*&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 11:05:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-size-of-the-uploaded-image-in-kbs-or-mbs-while/m-p/318873#M5874</guid>
      <dc:creator>Ankush_Bandil</dc:creator>
      <dc:date>2020-04-14T11:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get size of the uploaded image in KBs or MBs while searching in Nuxeo</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-size-of-the-uploaded-image-in-kbs-or-mbs-while/m-p/318874#M5875</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The information is stored in the &lt;CODE&gt;length&lt;/CODE&gt; property of your blob, like in&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;"file:content": { "name": "Plane.png", "mime-type": "image/png", "encoding": "", "digestAlgorithm": "MD5", "digest": "97dd6ae79e4e6f3cb868b7cef4d4f8bb", "length": "268322", "data": "https://nightly.nuxeo.com/nuxeo/nxfile/default/0cce04fa-d030-4005-8060-7e8bd612e491/file:content/Plane.png?changeToken=3-0" },
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The unit should be in bytes, so you have to make some conversions.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2020 16:30:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-get-size-of-the-uploaded-image-in-kbs-or-mbs-while/m-p/318874#M5875</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-04-19T16:30:05Z</dc:date>
    </item>
  </channel>
</rss>

