import base64


def decode_base64(content: str) -> bytearray:
    """
    decode base64 string to bytearray
    :param content:
    :return:
    """
    base64_info = content.encode('ascii')
    return bytearray(base64.b64decode(base64_info))