According to the answer here I want to write multiple files stream to one stream as following:
4 byte reserved for length number of each stream each stream content w
I think there is a better solution I posted as answer to my question here multiple file byte will be serialized to one stream and in client side it will be deserialized to a class of byte array.
see here, it may be useful.
But I have accepted the @jdweng solution and I appreciate his attention and help.