Fixed receiver using BytesIO

Signed-off-by: Malric <malricdal@gmail.com>