I\'ve created a simple docx-Document, using Java POI 3.7. XWPF. Then, I added a picture by using the Method XWPFDocument.addpicture(byte[] arg0, int arg1). >
XWPFDocument.addpicture(byte[] arg0, int arg1)
The bug link that you've provided actually has a working solution: https://issues.apache.org/bugzilla/show_bug.cgi?id=49765#c15
It requires some amount of hackery but I'm using it and it certainly works!