def convert_bytes_to_bit_str(byte_array):
    """Convert bytes to bits string for decoding purpose"""
    bin_format = '{0:08b}'
    bit_data = []
    for element in byte_array:
        data = bin_format.format(element)
        bit_data.append(data)
    return ''.join(bit_data)
