> How can I read the images and math equations from
> "msword file" and save those images in a separate
> folder.
How would you recognize a math equation in a word file, and what are you going to do with those?
Otherwise, how about asking a question like:
- how do I open the proprietary Word format in Java?
- how do I find images embedded in those files?
- how do I write an image to disk?
1) Google. Apache POI (which Word support still sucks) e.g. lets you do that. Anyway, I'd suggest using VB or something, it's probably well-suited for tasks like that.
2) Depends on the lib you chose to use. Ask their product support.
3) Look at class ImageIO.
http://jakarta.apache.org/poi/
see unit test of hwpf (http://jakarta.apache.org/poi/hwpf/quick-guide.html)
http://svn.apache.org/viewvc/jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/
http://svn.apache.org/viewvc/jakarta/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestPictures.java?revision=523777&view=markup