Hi,

Use the method of import javax.activation.MimetypesFileTypeMap to getting
mime type.
String mimeType = new MimetypesFileTypeMap().getContentType(file.getName());



On Fri, Sep 11, 2009 at 3:01 PM, Gary Long <[email protected]> wrote:

>
> Hi :)
>
> i have a problem with the function MimeTable.getContentTypeFor(file). It
> doesn't work with .doc files (and other microsoft Office documents). the
> function return the default mimetype -> application/octet-stream.
> It looks like there is no reference to .doc mimetype in the mimetable :/
>
> Can you help me please?
>
> thanks :)
> --
> View this message in context:
> http://www.nabble.com/problem-with-.doc-and-.xls-mimetype-tp25402655p25402655.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>

Reply via email to