Mailing List Archive

Re: [Inflex-general] Current data re MS Office files
> Just to try to help, I created a word doc (using Microsoft Word 2000) and
> used (Insert, Object... from file) to insert three files.. one a zip, one

Okay, yes, the byte sequence I offered was if you do things like
'insert->image'.

Object insertions I did not [yet] have a sequence.

> is the size of the attachment itself. Btw, both the relative offset and
> the attachment size are big endian (read: backwards) and are four bytes
> long. I hope this helps.

Aaah, now that is a very useful peice of information - now I have to write
something which will seek that out - flip it around, then read off the stream
for that many bytes - very very useful stuff!

... now, to code it up *cough* :-)

--
Paul L Daniels http://www.pldaniels.com
Linux/Unix systems Internet Development
ICQ#103642862,AOL:pldsoftware,IRC:inflex irc.freenode.net
A.B.N. 19 500 721 806
Re: Re: [Inflex-general] Current data re MS Office files [ In reply to ]
> ... now, to code it up *cough* :-)

#define INT32(x) (unsigned int)((unsigned char)(x)[0] \
+((unsigned char)(x)[1]<<8) \
+((unsigned char)(x)[2]<<16) \
+((unsigned char)(x)[3]<<24))

#define INT16(x) (unsigned int)((unsigned char)(x)[0] \
+((unsigned char)(x)[1]<<8))

--
Benjamin Halsted <ben@webgroupmedia.com>
WebGroup Media, LLC