• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing Image onto a WordDoc

 
Dushyant Chhetri
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How Do I write an Image using Java Code on a WordDoc.

I tried using the BufferedImage Class.



The file is being created but the image is not being displayed, instead a garbage output is being shown.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Word files have a structured format that you can't write using just the java.io classes. You need to use a library like Apache POI.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic