如何在gmail中显示base64图像?

发布于 2025-01-20 23:59:26 字数 518 浏览 2 评论 0原文

我正在从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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

生死何惧 2025-01-27 23:59:26

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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文