def get_encoded_poster(location, lang='en'):
    poster = get_pdf_poster(location, lang)
    poster_str = poster.read()
    poster_encoded = base64.b64encode(poster_str).decode()
    return poster_encoded
def get_encoded_poster(location, lang='en'):
    poster = get_pdf_poster(location, lang)
    poster_str = poster.read()
    poster_encoded = base64.b64encode(poster_str).decode()
    return poster_encoded