How correctly to receive data (including binary) transferred through standard input in the program working in a batch mode on linux?

For example, we cause so:

cat ./test.bin | /dlc/bin / _ progres -b -p ./test.p > ./test.out

The simple example of realization test.p which will create a target file test.out binary appropriate test.bin