On Mon, 27 Sep 2010, Zachary Mitchell wrote:
In v 3.6 of the POI library, there is an undocumented,  private

methodgetPictureBytesStartOffset(...,...,);

Try with 3.7 beta 3, the source code has a few more comments in it

There obviously isn't a getPictureBytesEndOffset.

Correct. In the constructor, we figure out the length

Is this "Secret" private method entirely completed?

Nope. As myself and others have tried to explain a number of times, we don't fully understand the header that sits before the image data.

I'm still confused. With my "array search" algorithm, I try to search my word document byte [] for occurences of my picture byte [].

I've tried to explain this one to you several times now.... Please re-read my responses!

So I am trying to reverse engineer from an OO file example. As such, I'm a little confused as to why I need ever care about a gif/jpg image file header, unless there is more work to be done for insertion into HWPFDocument that just taking the straight bytes.

There very much is more work to be done. See my earlier replies for details on what the process is, and what new code and reverse engineering is needed

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to