Hi Guys,
Just downloaded the docx4j and was tring to run sample to read images in document. Not sure I am getting getting pointer exception..
I was tring this sample org.docx4j.samples.ConvertEmbeddedImageToLinked..
This is the piece of code is problem..
Part p = relsPart.getPart(r);
FileOutputStream fos = new FileOutputStream( f );
((BinaryPart)p).writeDataToOutputStream(fos);
fos.close();
basically p is becoming null for any image in doc. Am I missing any setting here???