exec_binary()
Usage
exec_binary(output, name, parameters...)
exec_binary(output, name)
Description
This method is very similar to exec()
, but instead of returning the (text) result of the execution, it will copy its input stream to the given output buffer without modifying the binary data. This is important to allow streaming of binary data from a script to the client.
Example
${exec_binary(responsem 'my.create.pdf')}
results in the streaming of the binary content of the my.create.pdf
script to the client.