php client blob

Hi,

In the documentation, I saw the following code:

$answer = $session->newRequest(“Blob.Attach”)->set('params', 'document', $path) ->loadBlob($blob, $blobtype) ->sendRequest();

How do I convert a file to a blob? Also, what do I use as the blobtype?

Thanks.

0 votes

1 answers

1357 views

ANSWER



Hi,

You should take a look at the samples in our php automation client:

https://github.com/nuxeo/nuxeo-automation-php-client/blob/master/samples/B4.php

0 votes