I am trying to use HWPFDocument Java class to read/write a simple Word document. After writing with the HWPFDocument.write(OutputStream) method the word doc is unreadable by MS Word. It is just hanging there and not able to open the output file. This is how I am writing the doc: HWPFDocument doc = new HWPFDocument(new FileInputStream(inputFile)); FileOutputStream fos = new FileOutputStream(outputFile); doc.write(fos); fos.flush(); fos.close(); Any help with this is greatly appreciated. Can someone help me with this issue? I saw a similar issue in bugzilla with number #44431. Is there any resolution or workaround for this problem? Please help. Thanks Srinivas
Please attach the problematic file, without it we can't do much to help you. Yegor
6 year old bug without enough information to reproduce.