This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread 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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Writing Image onto a WordDoc" Watch "Writing Image onto a WordDoc" New topic

Writing Image onto a WordDoc

Dushyant Chhetri
Ranch Hand

Joined: Oct 28, 2009
Posts: 75

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

Joined: Mar 22, 2005
Posts: 39575
Word files have a structured format that you can't write using just the classes. You need to use a library like Apache POI.

Ping & DNS - updated with new look and Ping home screen widget
I agree. Here's the link:
subject: Writing Image onto a WordDoc
Similar Threads
Save Image into different domain
BufferedImage makes black quadrate instead of picture
how to get image from JPanel
Convert image to byte[] and viceversa
where does BufferedImage save files?