【发布时间】:2013-12-04 11:53:04
【问题描述】:
我有发送电子邮件的申请。图书馆使用了 swift mailer。 我已经生成了用于发送电子邮件的 html 字符串 其中包含各种标签,包括标签 我可以将该 img src 标签转换为 bas64 图像吗
前任
<html>
some txt+html ...
<img src="some-path/image.jpg">
some text+html ..
</html>
到
<html>
some txt+html ...
<img src="data:image/jpg;base64, $base64_code_of_image.jpg ">
some text+html ..
</html>
【问题讨论】: