MongoDB 用 bson 存储二进制图片:
@app.route("/img/<int:id>.png") def getImg(id): return image_file
怎样把 bson 数据重新解析为图片并返回给浏览器查看?