application/octet-stream vs. application/msword

The place for "I can't figure out how to..." questions.
Post Reply
v.chernousov
User
Posts: 2
Joined: Tue Aug 08, 2006 2:46 pm
Contact:

application/octet-stream vs. application/msword

Post by v.chernousov » Tue Aug 08, 2006 2:51 pm

Can somebody explain me what's the difference between application/octet-stream and application/msword? What's better? Why mime-support is using application/msword, and why getID3() uses application/octet-stream instead?

Thank you!

James Heinrich
getID3() v1 developer
Posts: 1476
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Post by James Heinrich » Wed Aug 09, 2006 12:25 am

"application/octet-stream" is the MIME way of saying "unknown binary data", which is usually handled by saving to disk rather than opening with an associated application. "application/msword" is specifically for Word documents (or at least document types that Word handles). getID3() does not differentiate between different types of Office documents (Word, Excel, PowerPoint, etc) so it just returns a generic "unknown" MIME type.

v.chernousov
User
Posts: 2
Joined: Tue Aug 08, 2006 2:46 pm
Contact:

Post by v.chernousov » Wed Aug 09, 2006 4:46 am

James Heinrich wrote:getID3() does not differentiate between different types of Office documents
Ahhh... ;) Thank you!

Post Reply