如何将 Gtk.Image 转换为 base64
我有一个 Gtk.Image 对象,我想将其数据转换为 base64 编码的字符串(与 imgur)。我将如何实现这一目标?
I have a Gtk.Image object and I want to convert it's data to a base64 encoded string (for use with imgur). How would I achieve that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
必须通过 gdk.pixbuf 运行它,但这似乎是最简单的:
Has to run it through a gdk.pixbuf, but this seems the easiest: