Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am trying to add a picture using the Apache POI's XWPFRun.addPicture method. I could see the file size getting increased once the code is run but while trying to open the document, the document seems to be corrupted

I know how to insert a image using the Docx4j.
But still I want to know why the addPicture method of XWPFRun corrupts the document.

Thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900