You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Nick Burch <ni...@torchbox.com> on 2006/09/06 11:49:34 UTC

Re: org.apache.poi.poifs.storage.HeaderBlockReader

Erez

Firstly, please always use the list. That way, others can see your 
question, and benefit from the answer

On Wed, 6 Sep 2006, Erez Eisenstein wrote:
> When I try to init a new HSLFSlideShow instance, I get IOException:
>
> java.io.IOException: Unable to read entire header; 89 bytes read;
> expected 512 bytes

I think there's something up with your input stream - this is a low level 
POIFS error about not being able to get the whole OLE header.

Depending on what it is, you might need to add some buffering, or you 
might need to write to disk and read it from there. First up, try getting 
it to write to disk, and ensure powerpoint can read it. When you have that 
working, you can then see where your input stream is getting messed up.

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/