File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 18570
    
    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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the difference between given mime types