Office document that contain embedded object are not correctly write by POIFS. After writing document, I try to read it with POIBrowser. I have the following exception: D:\word-001-updated.doc: java.io.IOException: block[ 0 ] already removed Source: public static void main(String[] args) throws IOException { String path = "D:\word-001.doc"; String path2 = "D:\word-001-updated.doc"; String[] paths = {path, path2}; POIFSFileSystem.main(paths); POIBrowser.main(paths); } I have try with Excel files, and i have the same problem. Thanks.
Created attachment 20200 [details] Sample file
Fixed in POI 3.0.3 Yegor
(In reply to comment #0) > Office document that contain embedded object are not correctly write by POIFS. > After writing document, I try to read it with POIBrowser. I have the following > exception: > D:\word-001-updated.doc: java.io.IOException: block[ 0 ] already removed > Source: > public static void main(String[] args) throws IOException { > String path = "D:\word-001.doc"; > String path2 = "D:\word-001-updated.doc"; > String[] paths = {path, path2}; > > POIFSFileSystem.main(paths); > POIBrowser.main(paths); > } > I have try with Excel files, and i have the same problem. > Thanks. Hi , Is that possible to add a embedded object(like pdf file) in word generated file by using Java ? Actuaallly I want a pdf file as a embedded object ,want to show pdf file as icon into Word file and after clicking on that pdf icon ,then that will open that pdf file . I am sending a word file including a object . Is that possible to create the same by using java? please send me the code on my mail id milindcp_01@rediffmail.com . Thanks
Please do not ask usage questions in old bug reports!