06-20-2013 06:33 PM
Hi,
How do I download an image file using the php client? I tried something like this:
$answer = $this->session->NewRequest("Blob.Get")->Set('input', 'doc:' . $path)->SendRequest();
header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.end(explode("/", $path))); readfile('tempstream');
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?
Thanks
06-26-2013 12:29 PM
I was able to fix this by changing readfile('tempstream') to echo $answer.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.