Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ripMIME: general

Re: [Inflex-general] Current data re MS Office files

 

 

ripMIME general RSS feed   Index | Next | Previous | View Threaded


pldaniels at pldaniels

Jul 1, 2003, 6:21 PM

Post #1 of 2 (986 views)
Permalink
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


ben at webgroupmedia

Jul 2, 2003, 8:24 AM

Post #2 of 2 (912 views)
Permalink
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 [at] webgroupmedia>
WebGroup Media, LLC

ripMIME general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.