File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
Java in General
Writing Image onto a WordDoc
Joined: Oct 28, 2009
Jun 15, 2011 23:43:28
How Do I write an
Code on a WordDoc.
I tried using the
BufferedImage bi = ImageIO.read(url); File outputfile = new File("C:\\saved.doc"); ImageIO.write(bi, "png", outputfile);
The file is being created but the image is not being displayed, instead a garbage output is being shown.
Joined: Mar 22, 2005
Jun 15, 2011 23:57:18
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.
I agree. Here's the link:
subject: Writing Image onto a WordDoc
where does BufferedImage save files?
Convert image to byte and viceversa
BufferedImage makes black quadrate instead of picture
how to get image from JPanel
Save Image into different domain
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015