This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes what is the difference between given mime types Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "what is the difference between given mime types" Watch "what is the difference between given mime types" New topic
Author

what is the difference between given mime types

Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
what is the difference between following mime types?
which is the correct one for word documents?

application/doc
application/msword
application/vnd.msword


Rizwan
SCJA, SCJP, SCWCD, SCBCD, SCDJWS.
Brian Mozhdehi
Ranch Hand

Joined: Aug 17, 2006
Posts: 81
application/msword is the correct mime type to invoke a browser or an email program to launch ms word when downloading the file.

From an encoding/decoding on transmission standpoint, all three are the same, i.e. they all are binary data that would be transmitted via either BASE64 or some form of enveloped data (such as in a signed or encrypted transmission) that would also ultimately be BASE64 encoded.
Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
Thanks Brain for clarification.
But who maintains and sets the standards like which mime to use. I am surprise to see three different mime types are used for same type of document.
Rusty Smythe
Ranch Hand

Joined: Aug 09, 2006
Posts: 93
Mime info
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Originally posted by Rizwan Mohammad:
But who maintains and sets the standards like which mime to use. I am surprise to see three different mime types are used for same type of document.
People can use whatever they like. However making up your own MIME types (or using guesses at what a MIME type should be) runs the risk that the receiver won't understand what you mean. Here is the official list.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: what is the difference between given mime types
 
Similar Threads
Mistakenly changed web.xml
Opening an Excel file
Start a Java Application from Browser in Mac
Reading files sent in SMTP
Difference between redirect and redirectAction result type