import requests
import base64


def process_logo_by_url(url):
    """Download and encode image by url."""
    res = requests.get(url)
    encoded_logo = base64.b64encode(res.content)
    return encoded_logo