flask upload python-base64 image flask upload python-base64 image flask flask

flask upload python-base64 image


Looks like you need to decode that value. Something like:

    img_b64 = request.form.get("image_bytes")    img_b64 = img_b64.decode('utf-8')    #...

Not sure if client.run_function will appreciate this, as it's not clear from your question what that method does. Perhaps you could put the above mod within that function if you wrote it yourself, so that the correctly decoded value ends up within response as expected.