public void extractImagesFromDocx(byte[] docx) throws Exception {
Document document = new Document(new ByteArrayInputStream(docx));
NodeCollection<Shape> docShapes = (NodeCollection<Shape>) document.getChildNodes…...NodeCollection<Shape> docShapes = (NodeCollection<Shape>) document...getChildNodes(NodeType.SHAPE, true); int idx = 0; for(Shape shape: docShapes)...