03-25-2015 10:12 AM
Hello , We want to display contents from Nuxeo using the Uid of document, We can get the uid but we have a problem to display his content We used this function but no results any help please? Greetings
$client = new NuxeoPhpAutomationClient('http://localhost:8080/nuxeo/site/automation');
$session = $client->GetSession('Administrator','Administrator');
$answer = $session->NewRequest("Blob.Get")->Set('input', 'doc: ' . $path)->SendRequest();
if (!isset($answer) OR $answer == false) echo '$answer is not set'; else{ header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.$filename.'.pdf'); readfile('tempstream'); }
03-25-2015 01:51 PM
I Solve the problem there is a blank space in the set method exactly in 'doc ' i told them to correct it in Nuxeo documentation
$answer = $session->NewRequest("Blob.Get")->Set('input', 'doc: ' . $path)->SendRequest();
I told the community to correct it 😉
03-25-2015 01:51 PM
I Solve the problem there is a blank space in the set method exactly in 'doc ' i told them to correct it in Nuxeo documentation
$answer = $session->NewRequest("Blob.Get")->Set('input', 'doc: ' . $path)->SendRequest();
I told the community to correct it 😉
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.