如何在gmail中显示base64图像?
我正在从base64
在Markdown新闻通讯中编码的图像从Rich Text Editor
中发送到不同的电子邮件服务。除gmail
外,每个服务都正确地呈现图像。相反,它显示base64字符串
:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACLQAAAxOCAYAAAD0p7d8AA...
主 so thread 问题不能提供解决方案,正如公认答案的评论中可以看出的那样。
一个人如何从gmail中显示数据字符串
的图像?是否可以插入转换层以使其正常工作? (我不敢相信Gmail在6年后不支持这一点)
I'm sending base64
encoded images in a markdown newsletter to different email services from a rich text editor
. Every service renders the images properly except gmail
. Instead it displays the base64 string
:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACLQAAAxOCAYAAAD0p7d8AA...
The main SO thread regarding this problem does not provide a solution, as can be seen in the comments of the accepted answer.
How does one display images from a data string
in gmail? Is it possible to insert a transformation layer to make it work? (I can't believe gmail doesn't support this after 6 years)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Gmail 不支持嵌入的 Base 64 图片(请参阅我可以发送电子邮件)。我相信这是出于一般安全原因。您要么需要生成图像服务器端。或者将其作为附件发送(就像您提到的其他帖子一样)。
Gmail does not support embedded Base 64 images (see Can I email). I believe this is for general security reasons. You either need to generate your image server side. Or send it as an attachment (like in the other post you mentioned).