VML base64 图像 [英] VML base64 image

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

问题描述

我在 Outlook 2007 中使用 html 签名.签名包含一些图像文件.我想嵌入图像文件,所以它不应该在附件上.但是 v:image 不显示图像.

I use html signature for Outlook 2007. The signature contains a few image file. I want embed image files so it's shouldn't be on attachment. But v:image doesn't show image.

<!--[if gte vml 1]>
    <v:image style="width:104px;height:108px;" src="data:image/jpg;base64,/9j/4AAQSkZ......AgEAgEAgEAgEAgP//Z">
        </v:image>
    <![endif]-->
    <![if !vml]><img width=104 height=108
src="data:image/jpg;base64,/9j/4AAQSkZJR...AICpUuZdbmkMBXsnT3knOxse8nkcs+B4iAtsAgEAgEAgEAgEAgEAgP//Z" alt="footer_logo.jpg" v:shapes="Resim_x0020_4"><![endif]>

推荐答案

Outlook 使用 Word 来呈现图像,而 Word 不支持嵌入 (src="data:image") 图像.您需要将图像作为文件附加,在附件上设置 PR_ATTACH_CONTENT_ID 属性 (Attachment.PropertyAccessor.SetProperty),并确保您的 HTML 通过 src=cid:xyz 属性(其中 xyz 是PR_ATTACH_CONTENT_ID 属性).

Outlook uses Word to render the images, and Word does not support embedded (src="data:image") images. You need to attach the image as a file, set the PR_ATTACH_CONTENT_ID property on the attachment (Attachment.PropertyAccessor.SetProperty), and make sure your HTML refers to the image through the src=cid:xyz attribute (where xyz is the value of the PR_ATTACH_CONTENT_ID property).

PR_ATTACH_CONTENT_ID 属性 DASL 名称为 http://schemas.microsoft.com/mapi/proptag/0x3712001F

PR_ATTACH_CONTENT_ID property DASL name is http://schemas.microsoft.com/mapi/proptag/0x3712001F

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

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