原地址:http://www.cnblogs.com/RedSky/p/5786703.html点击打开链接
1,图片要转为byte[],
2,注意加上“data:image/jpeg;base64,”,这里jpeg可以换成其他。
string html = "<img src='https://img-blog.csdnimg.cn/2022012009112513475.jpeg"margin:0px; padding:0px; color:rgb(128,0,0); line-height:1.5!important">" + Convert.ToBase64String(byte[] bytes) + "' />";