https://issues.apache.org/bugzilla/show_bug.cgi?id=57031
Bug ID: 57031
Summary: Out of Memory when extracting text from attached files
Product: POI
Version: 3.7-FINAL
Hardware: PC
Status: NEW
Severity: critical
Priority: P2
Component: POI Overall
Assignee: [email protected]
Reporter: [email protected]
Created attachment 32066
--> https://issues.apache.org/bugzilla/attachment.cgi?id=32066&action=edit
docx
I'm getting OOM when trying to extract text from attached files.
public class POITest
{
public static void main( String[] args ) throws Exception
{
String filePath = "/Users/lguoyu/Downloads/HW13_SA.docx";
FileInputStream inputStream = new FileInputStream( filePath );
POITextExtractor pTextExtract;
try
{
pTextExtract = ExtractorFactory.createExtractor( inputStream );
String text = pTextExtract.getText();
System.out.println( text );
}
catch ( Throwable e )
{
e.printStackTrace();
}
}
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]