jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vijay Katariya <katariyavi...@gmail.com>
Subject Re: problem with .doc and .xls mimetype
Date Fri, 11 Sep 2009 18:40:24 GMT
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 <gary.long@gmx.fr> 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.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message