Read/write a length prefixed JSON message to a stream and send regular binary data afterwards.