You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

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.

Search results for "exec_binary()"

exec_binary()

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.

exec_binary(output, name, parameters...)
exec_binary(output, name)