add example receiving binary data from C code