我已经获取了图片的二进制,并且用BASE64进行编码,我将图片写到本地的文件中可以生成图片。
然后通过这个控件把二进制写进去,生成word的时候显示不到图片。
然后我将生成的没有图片的word转换成html文件,生成的有一个files文档,里面有一张照片(image001.gif)也是没有内容,以下是督导的html中照片的保存方式:
style='font-size:12.0pt;font-family:楷体_GB2312;mso-hansi-font-family:宋体'>照片 lang=EN-US>
<!--[if gte vml 1]>
coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
/v:formulas
/v:shapetype
alt="Base64 encoded image" style='width:81.35pt;height:103.8pt;visibility:visible;
mso-wrap-style:square;mso-left-percent:-10001;mso-top-percent:-10001;
mso-position-horizontal:absolute;mso-position-horizontal-relative:char;
mso-position-vertical:absolute;mso-position-vertical-relative:line;
mso-left-percent:-10001;mso-top-percent:-10001'>
/v:shape<![endif]--><![if !vml]>
src="ZTE2liu.files/image001.gif" alt="Base64 encoded image" v:shapes="图片_x0020_1"><![endif]>
lang=EN-US style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;
mso-font-kerning:0pt'>
难道这个二进制流不能直接写到中吗?挺着急的求大神指导
我邮箱 zhykwork@163.com 谢谢!