Hi, I have a word document which is nearly 30 MB in size and I need to extract the content of that. But POIFSFileSystem throws an out of memory error and is not able to open the document. I searched on google to find some solution and found this: They recommend to increase the amount of memory that Java can use with these runtime options; java -Xms<initial heap size> -Xmx<maximum heap size> But we do not have an option to increase the same. I wanted to know if there is any other way in which we can get the content in chunks or so OR some other solution without modifiying the amount of java memory. Many thanks in advance, Gitu
You need to increase your Java heap size. The word format doesn't support incremental reading.