Digital Read to Bytes

Hello

I have a transmitted connected to a digital input. I need to convert the bit stream back into bytes. What is the most effective way of doing this.

I am thinking a loop to see when digital read goes hight for the length of the payload (64 bits)

Thank you

Could be as simple as Serial.read,
depends on the details regarding this
"bit stream".

It depends on the protocol used in the transmitter. There is no universal way for reading a bit stream.