我有一个Base64编码的字符串,我希望将其转换为图像并使用DocumentFormat.openXML在Word文档中进行绘制
as regular binary images. for get bytes use Convert.FromBase64String(theBase64string)
, and for stream use MemoryStream
:
using(var m = new MemoryStream(Convert.FromBase64String(theBase64string)))
{
//here, same code to insert regular binary images
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.