On Thu, 28 Aug 2008, Dmitry Goldenberg wrote:
You were right, the .bin file in /embeddings is Ole and can be read with POIFS.

It looks like there's three files within the poifs stream:
  Ole <(0x01)Ole>
  CompObj <(0x01)CompObj>
  Ole10Native <(0x01)Ole10Native>

The gotcha is, there's currently no API to extract the file out of the Ole structures within POIFS.

It should be a five minute job - grab the poifs entry, get the bytes, and write them to a FileOutputStream. Probably 15-20 minutes including unit tests and overloaded methods :)


The slight snag will be that the Ole10Native entry isn't quite what you want. It contains the file name, the absolute file name, a little bit more bumpf, then your real file data after that. A little bit of work will be needed to figure out how to tell where the real file data starts, but then you'd be away!

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to