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
Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.
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.