from base64 import b64encode

@app.route('/event/<int:id>/logo')
def event_logo(id):
    event = Event.query.get_or_404(id)
image = b64encode(event.logo)
Serve image stored in SQLAlchemy LargeBinary column