poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thaddaeus Fillmore - US <tfillm...@caci.com>
Subject RE: Need Help with XWPFDocument issue
Date Wed, 13 Apr 2016 18:28:05 GMT
Turns out files are fubar.  Will see if I can catch them before they go to the database.

Thanks,

Thaddaeus Fillmore
CACI International Inc.
Systems Analyst
703-460-1425


-----Original Message-----
From: Nick Burch [mailto:apache@gagravarr.org] 
Sent: Wednesday, April 13, 2016 2:04 PM
To: POI Users List
Subject: Re: Need Help with XWPFDocument issue

On Wed, 13 Apr 2016, Thaddaeus Fillmore - US wrote:
> Hello, I'm venturing into using POI to extract text from Word documents. 
> For some reason when XWPFDocument initializes from my FileInputStream, 
> there's and exception generated from java.util.zip.InflaterInputStream.

http://poi.apache.org/spreadsheet/quick-guide.html#FileInputStream
That's for Excel files, but much the same thing applies for XWPF and XSLF too

So, try opening from a File directly instead, don't use a stream if you don't have to!

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message