aspose file tools
The moose likes Other Open Source Projects and the fly likes Apche POI XWPFDocument image adding Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Apche POI XWPFDocument image adding" Watch "Apche POI XWPFDocument image adding" New topic
Author

Apche POI XWPFDocument image adding

debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 180

hi all,

i am adding an image using the following code:

but the file becomes corrupted. Reference doc - http://poi.apache.org/apidocs/org/apache/poi/xwpf/usermodel/XWPFRun.html#addPicture%28java.io.InputStream,%20int,%20java.lang.String,%20int,%20int%29
also same with

my dependencies are:

any help would be great.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2329
Please post an SSCCE. (<-- That's a link.)
 
 
subject: Apche POI XWPFDocument image adding
 
Threads others viewed
Spring3 + JPA 2 + JBoss 6
jstl in eclipse with maven
java.lang.NoClassDefFoundError: oracle/toplink/essentials/ejb/cmp3/EntityManagerFactoryProvider
How to get Maven to include "persistence.xml" into a web app??
Need com.thoughtworks.xstream.annotations
developer file tools