在 Python 中将 base64 转换为图像 [英] Convert base64 to Image in Python

查看:65
本文介绍了在 Python 中将 base64 转换为图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 mongoDB 数据库,我恢复了与我的图像相对应的 base64 数据.

I have a mongoDB database and I recover base64 data which corresponds to my Image.

我不知道如何将base64数据转换为Image.

I don't know how to convert base64 data to an Image.

推荐答案

如果你想在网页中使用它,你可以把 base64 编码的图像放入 HTML 文件中.

If you'd like to use that in a webpage, you can just put the base64 encoded image into a HTML file.

查看维基百科了解更多信息

这篇关于在 Python 中将 base64 转换为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆