In the end I found an answer. I included the contents of the image as a base64 encoded string. <img src=”data:image/png,base64,(and then include the contents of the image)
I was able to do this by calling the $Image/contents variable, and using the Community Commons library to encode this into a base64 string, using the Base64 Encode File java call.
I hoep this helps someone else struggling with this problem.
HI David,
Where is the image located ?
Is it stored in a enity in mendix ? if you know the GUID of the image enity you can put cutom java action to retrieve the Enitity object and you can use a dynamic image veiwer in document template.
Kindly accept the if this solution works for you.
You could use my Word Exportermodule for this. It allows for adding images if added via the ckEditor widget. Do note this approach doesn’t use the Mendix document template,
There is a demo app in which you could check your use case.
Good luck!