Recognize different MIMEtypes?

Hi!

I have a problem with MIMEtypes.

If one have a MSWord document and changes the extension from word.doc to word.jpg. Is there a anyone who know how to recognize the "true" MIME type. It is a word document but MIMEBasicPart.getContentSubType() don't recognize the word document.

Any one who can help me!

//Andreas

[361 byte] By [ermahen] at [2007-9-26 3:30:46]
# 1
What is MIMEBasicPart.getContentSubType() ?
neville_sequeira at 2007-6-29 11:56:43 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Netscapes api fro handeling MIME types!
ermahen at 2007-6-29 11:56:43 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...