This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes Writing Image onto a WordDoc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Writing Image onto a WordDoc" Watch "Writing Image onto a WordDoc" New topic
Author

Writing Image onto a WordDoc

Dushyant Chhetri
Ranch Hand

Joined: Oct 28, 2009
Posts: 75
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
Marshal

Joined: Mar 22, 2005
Posts: 41582
    
  54
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.


Ping & DNS - my free Android networking tools app
 
jQuery in Action, 2nd edition
 
subject: Writing Image onto a WordDoc