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');
}