Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 76371 invoked from network); 11 Sep 2009 18:40:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Sep 2009 18:40:57 -0000 Received: (qmail 81162 invoked by uid 500); 11 Sep 2009 18:40:56 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 81118 invoked by uid 500); 11 Sep 2009 18:40:56 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 81104 invoked by uid 99); 11 Sep 2009 18:40:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2009 18:40:56 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of katariyavijay@gmail.com designates 209.85.222.184 as permitted sender) Received: from [209.85.222.184] (HELO mail-pz0-f184.google.com) (209.85.222.184) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2009 18:40:45 +0000 Received: by pzk14 with SMTP id 14so1104796pzk.1 for ; Fri, 11 Sep 2009 11:40:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=m5vPQul3oZVXuL8D8N+mb3ytj5EHpnbF3bfUsqlZuTc=; b=tcM3lNZrFlauufag+qk6LqzG5EXChkkTH+rSRtkGLfXe9fa4hMx2HrKBS/NdUuujP3 JeIQaN8+mriozCl9IEvGDuQ6COJXcPVbDlyqcmuWaUiU6d3M3GDjouZoApAfmd2IsRlG RyPlKuv9OVMvtYq0MwM+nAqnzDrQ5YiugkqYc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=SVcnNebdc2N0E6uTbmwgbofdLklWFfIWOGuI+4M4r6H2WB+8MtJNz/c9H7exKn3207 oHZp70YqAIuRSq3y6KviKRiW33Y2Y7h02y8o0h5PnTwTPzLtxFUA9Q3V/eL8GMPP+j8S g8uAc9AyCALYxfPD7ThE9enuoPHpZB9XuMsZY= MIME-Version: 1.0 Received: by 10.142.75.15 with SMTP id x15mr298590wfa.152.1252694424320; Fri, 11 Sep 2009 11:40:24 -0700 (PDT) In-Reply-To: <25402655.post@talk.nabble.com> References: <25402655.post@talk.nabble.com> Date: Fri, 11 Sep 2009 18:40:24 +0000 Message-ID: <1846b53e0909111140j5843ce36s47304f7fb9156950@mail.gmail.com> Subject: Re: problem with .doc and .xls mimetype From: Vijay Katariya To: users@jackrabbit.apache.org Content-Type: multipart/alternative; boundary=001636e1fb242c79a1047351a609 X-Virus-Checked: Checked by ClamAV on apache.org --001636e1fb242c79a1047351a609 Content-Type: text/plain; charset=ISO-8859-1 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 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. > > --001636e1fb242c79a1047351a609--