How to save a image file on a Postgres database?

前端 未结 5 1181
后悔当初
后悔当初 2021-01-31 06:21

For learning purposes, I\'m creating a site using Python+Flask. I want to recover an image from database and show it on screen. But one step at a time.

I have no idea ho

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 06:37

    You can use Python's base64 for encoding and decoding arbitrary binary strings into text strings.

提交回复
热议问题