def array_to_blob(array):
    """
    Converts an array of numbers into raw data bytes.
    :param array: an array of numbers - np.array
    :return blob: a bytes representation of the array - bytes
    """
    return array.tostring()