On 5/7/08, Nick Burch <[EMAIL PROTECTED]> wrote: > You have word at: > \ > \ObjectPool\_1271595753\ > \ObjectPool\_1271595753\ObjectPool\_1268214091\ > And excel at: > \ObjectPool\_1271595753\ObjectPool\_1268480555\ > My hunch is that your zip file is somewhere in > \ObjectPool\_1271662200\
It's quite obvious and I already can save office files, but the problem is to save zip and other files: I don't know which of the streams in _1271662200 should i open and save. Word, Excel and others have some predefined stream name, but all others don't. > OK, not a full OLE2 image. Try looking at the first 20 bytes or so, and > compare it to those from POIFSViewer. You might find that for example, it's > the Workbook stream of an excel file, without the normal OLE2 wrapper. I opened extracted and original files in hex editor and found that header being added to extracted files has variable length. Some of them are 20 bytes long, but some other are 82 bytes long. I also tried to examine wine's implementation of OLESaveToStream but gave up :( There's a temporary workaround: define signatures for supported file format and extract starting from it, but this looks dirty --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
