Return-Path: X-Original-To: apmail-poi-user-archive@www.apache.org Delivered-To: apmail-poi-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B53DE19E92 for ; Wed, 13 Apr 2016 18:28:52 +0000 (UTC) Received: (qmail 16138 invoked by uid 500); 13 Apr 2016 18:28:52 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 16112 invoked by uid 500); 13 Apr 2016 18:28:51 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 16101 invoked by uid 99); 13 Apr 2016 18:28:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2016 18:28:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 3A9DCC064A for ; Wed, 13 Apr 2016 18:28:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.999 X-Spam-Level: X-Spam-Status: No, score=0.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id wxu0X0SS56zv for ; Wed, 13 Apr 2016 18:28:50 +0000 (UTC) Received: from mailserver2.caci.com (mailserver2.caci.com [204.194.77.24]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 336A55F24D for ; Wed, 13 Apr 2016 18:28:50 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.24,480,1454994000"; d="scan'208";a="109792127" Received: from cisexcasmb03-1a.caci.com ([10.14.203.14]) by mailserver2.caci.com with ESMTP/TLS/AES256-SHA; 13 Apr 2016 14:28:49 -0400 Received: from CISEXCASMB03-1A.caci.com (10.14.203.14) by CISEXCASMB03-1a.caci.com (10.14.203.14) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Wed, 13 Apr 2016 14:28:06 -0400 Received: from CISEXCASMB03-1A.caci.com ([fe80::c4d3:6bd8:b7eb:43ba]) by CISEXCASMB03-1a.caci.com ([fe80::c4d3:6bd8:b7eb:43ba%12]) with mapi id 15.00.1076.010; Wed, 13 Apr 2016 14:28:06 -0400 From: Thaddaeus Fillmore - US To: POI Users List Subject: RE: Need Help with XWPFDocument issue Thread-Topic: Need Help with XWPFDocument issue Thread-Index: AdGVrXxRpKrfvgOEQfeWnEUyH7gUaAAIuNEAAAeSvSA= Date: Wed, 13 Apr 2016 18:28:05 +0000 Message-ID: <7d398dbc083346ccbebde982937d7563@CISEXCASMB03-1a.caci.com> References: <7fc68a95a11245a5b24d3929aa93f65a@CISEXCASMB03-1a.caci.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.132.0.107] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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]=20 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.= =20 > For some reason when XWPFDocument initializes from my FileInputStream,=20 > 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 t= oo 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 comm= ands, 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