<?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: php client download image file in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/php-client-download-image-file/m-p/319044#M6045</link>
    <description>&lt;P&gt;I was able to fix this by changing readfile('tempstream') to echo $answer.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2013 16:29:47 GMT</pubDate>
    <dc:creator>sk90_</dc:creator>
    <dc:date>2013-06-26T16:29:47Z</dc:date>
    <item>
      <title>php client download image file</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/php-client-download-image-file/m-p/319043#M6044</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;How do I download an image file using the php client? I tried something like this:&lt;/P&gt;
&lt;P&gt;$answer = $this-&amp;gt;session-&amp;gt;NewRequest("Blob.Get")-&amp;gt;Set('input', 'doc:' . $path)-&amp;gt;SendRequest();&lt;/P&gt;
&lt;P&gt;header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.end(explode("/", $path)));
readfile('tempstream');&lt;/P&gt;
&lt;P&gt;But the downloaded file is not a valid image file. I tried changing the content-type to image/png as well. What am i missing?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 22:33:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/php-client-download-image-file/m-p/319043#M6044</guid>
      <dc:creator>sk90_</dc:creator>
      <dc:date>2013-06-20T22:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: php client download image file</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/php-client-download-image-file/m-p/319044#M6045</link>
      <description>&lt;P&gt;I was able to fix this by changing readfile('tempstream') to echo $answer.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 16:29:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/php-client-download-image-file/m-p/319044#M6045</guid>
      <dc:creator>sk90_</dc:creator>
      <dc:date>2013-06-26T16:29:47Z</dc:date>
    </item>
  </channel>
</rss>

