I am using Python Flask as my backend and have run into a small problem. In an external application, I have a form containing an image upload function.
In the backend, I relate the variable to the image with
image = request.files['image']
This exports the object FileStorage.
I want to convert the image to base64 format to insert it into my db. I tried a lot, but nothing worked. Somebody knows?
source
share