<?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 Download document using Blob.get from javascript client in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/download-document-using-blob-get-from-javascript-client/m-p/313193#M194</link>
    <description>&lt;P&gt;Hi, &lt;BR /&gt;
i want to download file using api rest method Blob.get.&lt;BR /&gt; I use nuxeo-js-client(
nuxeo-js-client) with the method client.operation .&lt;BR /&gt; The request download the blob file normally but the file is empty when i try to open it.&lt;BR /&gt;
Do you have an idea?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
Log of request :&lt;BR /&gt;&lt;BR /&gt;
Request URL:http://192.168.102.170:9000/nuxeo/site/automation/Blob.Get&lt;BR /&gt;
Request Method:POST&lt;BR /&gt;
Status Code:200 OK&lt;BR /&gt;
Request Headersview source&lt;BR /&gt;
Accept:&lt;EM&gt;/&lt;/EM&gt;&lt;BR /&gt;
Accept-Encoding:gzip,deflate,sdch&lt;BR /&gt;
Accept-Language:fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4&lt;BR /&gt;
Authorization:Basic QWRtaW5pc3RyYXRvcjpBZG1pbmlzdHJhdG9y&lt;BR /&gt;
Connection:keep-alive&lt;BR /&gt;
Content-Length:99&lt;BR /&gt;
Content-Type:application/json+nxrequest&lt;BR /&gt;
Host:192.168.102.170:9000&lt;BR /&gt;
Nuxeo-Transaction-Timeout:55&lt;BR /&gt;
Origin:http://192.168.102.170:9000&lt;BR /&gt;
Referer:http://192.168.102.170:9000/&lt;BR /&gt;
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
X-NXRepository:default&lt;BR /&gt;
X-NXVoidOperation:false&lt;BR /&gt;
X-Requested-With:XMLHttpRequest&lt;BR /&gt;
Request Payloadview source&lt;BR /&gt;
{params:{xpath:file:content}, context:{}, input:doc:7412af59-f7ba-40d6-8131-386f467704e8}&lt;BR /&gt;
Response Headersview source&lt;BR /&gt;
access-control-allow-credentials:true&lt;BR /&gt;
access-control-allow-origin:http://192.168.102.170:9000&lt;BR /&gt;
connection:keep-alive&lt;BR /&gt;
content-disposition:attachment; filename=file.pdf&lt;BR /&gt;
content-length:718871&lt;BR /&gt;
content-type:application/pdf&lt;BR /&gt;
date:Wed, 09 Jul 2014 14:13:02 GMT&lt;BR /&gt;
server:Apache-Coyote/1.1&lt;BR /&gt;
x-ua-compatible:IE=Edge,chrome=1&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jul 2014 17:17:18 GMT</pubDate>
    <dc:creator>ssow_</dc:creator>
    <dc:date>2014-07-09T17:17:18Z</dc:date>
    <item>
      <title>Download document using Blob.get from javascript client</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/download-document-using-blob-get-from-javascript-client/m-p/313193#M194</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
i want to download file using api rest method Blob.get.&lt;BR /&gt; I use nuxeo-js-client(
nuxeo-js-client) with the method client.operation .&lt;BR /&gt; The request download the blob file normally but the file is empty when i try to open it.&lt;BR /&gt;
Do you have an idea?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
Log of request :&lt;BR /&gt;&lt;BR /&gt;
Request URL:http://192.168.102.170:9000/nuxeo/site/automation/Blob.Get&lt;BR /&gt;
Request Method:POST&lt;BR /&gt;
Status Code:200 OK&lt;BR /&gt;
Request Headersview source&lt;BR /&gt;
Accept:&lt;EM&gt;/&lt;/EM&gt;&lt;BR /&gt;
Accept-Encoding:gzip,deflate,sdch&lt;BR /&gt;
Accept-Language:fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4&lt;BR /&gt;
Authorization:Basic QWRtaW5pc3RyYXRvcjpBZG1pbmlzdHJhdG9y&lt;BR /&gt;
Connection:keep-alive&lt;BR /&gt;
Content-Length:99&lt;BR /&gt;
Content-Type:application/json+nxrequest&lt;BR /&gt;
Host:192.168.102.170:9000&lt;BR /&gt;
Nuxeo-Transaction-Timeout:55&lt;BR /&gt;
Origin:http://192.168.102.170:9000&lt;BR /&gt;
Referer:http://192.168.102.170:9000/&lt;BR /&gt;
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
X-NXRepository:default&lt;BR /&gt;
X-NXVoidOperation:false&lt;BR /&gt;
X-Requested-With:XMLHttpRequest&lt;BR /&gt;
Request Payloadview source&lt;BR /&gt;
{params:{xpath:file:content}, context:{}, input:doc:7412af59-f7ba-40d6-8131-386f467704e8}&lt;BR /&gt;
Response Headersview source&lt;BR /&gt;
access-control-allow-credentials:true&lt;BR /&gt;
access-control-allow-origin:http://192.168.102.170:9000&lt;BR /&gt;
connection:keep-alive&lt;BR /&gt;
content-disposition:attachment; filename=file.pdf&lt;BR /&gt;
content-length:718871&lt;BR /&gt;
content-type:application/pdf&lt;BR /&gt;
date:Wed, 09 Jul 2014 14:13:02 GMT&lt;BR /&gt;
server:Apache-Coyote/1.1&lt;BR /&gt;
x-ua-compatible:IE=Edge,chrome=1&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2014 17:17:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/download-document-using-blob-get-from-javascript-client/m-p/313193#M194</guid>
      <dc:creator>ssow_</dc:creator>
      <dc:date>2014-07-09T17:17:18Z</dc:date>
    </item>
  </channel>
</rss>

