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 ACEFE9574 for ; Tue, 31 Jan 2012 11:40:07 +0000 (UTC) Received: (qmail 63606 invoked by uid 500); 31 Jan 2012 11:40:07 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 63589 invoked by uid 500); 31 Jan 2012 11:40:06 -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 63581 invoked by uid 99); 31 Jan 2012 11:40:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2012 11:40:06 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nick.burch@alfresco.com designates 207.126.144.147 as permitted sender) Received: from [207.126.144.147] (HELO eu1sys200aog119.obsmtp.com) (207.126.144.147) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 31 Jan 2012 11:39:56 +0000 Received: from zimbra.alfresco.com ([88.151.129.50]) by eu1sys200aob119.postini.com ([207.126.147.11]) with SMTP ID DSNKTyfS+CybxSL2TnMVTrsRW0YGmqb6qTcq@postini.com; Tue, 31 Jan 2012 11:39:36 UTC Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.alfresco.com (Postfix) with ESMTP id 27836B40040 for ; Tue, 31 Jan 2012 11:39:36 +0000 (GMT) X-Virus-Scanned: amavisd-new at unx-d-manc4.tc.ifeltd.com Received: from zimbra.alfresco.com ([127.0.0.1]) by localhost (zimbra.alfresco.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y7w9NRjfRT3p for ; Tue, 31 Jan 2012 11:39:35 +0000 (GMT) Received: from urchin.earth.li (urchin.earth.li [212.13.204.73]) (Authenticated sender: nick.burch@alfresco.com) by zimbra.alfresco.com (Postfix) with ESMTP id D0968B4001C for ; Tue, 31 Jan 2012 11:39:35 +0000 (GMT) Date: Tue, 31 Jan 2012 11:39:35 +0000 (GMT) From: Nick Burch X-X-Sender: nick@urchin.earth.li To: POI Users List Subject: Re: Extracting a byte[] of a record. In-Reply-To: <4F2793DA.2060905@macrohmasheen.com> Message-ID: References: <4F234388.1090006@macrohmasheen.com> <1327850737578-5439538.post@n5.nabble.com> <4F2793DA.2060905@macrohmasheen.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org On Mon, 30 Jan 2012, Raindog wrote: > Thanks for your suggestion. The following code from your example is > close to what I wrote, but leaves me with the same problem I had: How to > access the raw bytes of the item from a DocumentEntry. DocumentInputStream is what you're looking for here, you create one from a DocumentEntry and then you read from it as a normal InputStream See for more on working with POIFS to read (and write) entries, and for some general info on embedded documents Nick --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org