poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <nick.bu...@alfresco.com>
Subject Re: Extracting a byte[] of a record.
Date Tue, 31 Jan 2012 11:39:35 GMT
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 <http://poi.apache.org/poifs/how-to.html> for more on working with 
POIFS to read (and write) entries, and 
<http://poi.apache.org/poifs/embeded.html> 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


Mime
View raw message