Cfcontent IIS and particular mime types

I have an application this is using flowplayer to play various video files. The video files are passed to flowplayer using a cfm script with the cfcontent tag. What I am finding is that for some file types this process fails; the player hangs and the video doesn't play. An example file type is mp4. The problem is specific to our server running IIS 6. On my local box I have Apache installed and the script works fine for mp4 files. I have the mp4 mime type defined in IIS 6 as "video/mp4" and that is what I use in the type attribute of the cfcontent tag. (I've also tried "video/mpeg" without success.) If I change my process so that I pass the file directly to flowplayer then it plays fine on IIS 6. Here is the basic code I have for providing the file.
<cfdirectory directory="#fileDir#" action="list" filter="#getAllFileInfoRet.result.file_name#" name="dirFileInfo" />
<cfif dirFileInfo.recordcount gt 0>
    <cfheader name="Content-Length" value="#dirFileInfo.size#">
</cfif>
<cfheader name="Expires" value="Thu, 19 Nov 1981 08:52:00 GMT">
<cfset tz = GetTimeZoneInfo() />
<cfset gmtNow = DateAdd("h",tz.utcHourOffset,Now()) />
<cfheader name="Last-Modified" value="#DateFormat(gmtNow,"ddd, d mmm yyyy")# #TimeFormat(gmtNow,"hh:mm:ss")# GMT">
<cfheader name="Content-Disposition" value="attachment;filename=#getAllFileInfoRet.result.file_name#">
<cfheader name="Content-Type" value="#getAllFileInfoRet.result.file_ext_mime#">
<cfheader name="Cache-Control" value="no-store, no-cache, must-revalidate, post-check=0, pre-check=0">
<cfheader name="Pragma" value="no-cache">
<cfcontent deletefile="false" file="#fileDir##getAllFileInfoRet.result.file_name#" type="#getAllFileInfoRet.result.file_ext_mime#" />
I've tried various combinations of the cfheader tags without having any effect. If anyone has some suggestions or has encountered something similar, I'll take whatever help I can get.

Hi Adam,
In the end, the only way that I could get it to work in all browsers was to create a temporary file.  However, the cfheader info was useful, so thanks.
Michael
Code I used:
<cffile action="write"
file="#GetTempDirectory()#/#varFileName#"
        output="#structDocument.Filecontent#"
>
<!--- Output doc --->
<cfheader name="Content-Disposition" value="#var_content_dis#">
<cfheader name="Content-Length" value="#var_content_len#">
<cfcontent type="#var_content_type" file="#GetTempDirectory()#/#varFileName#">

Similar Messages

  • [svn:fx-trunk] 12871: More new Spark acc impl files were missing svn: eol-style and svn:mime-type properties.

    Revision: 12871
    Revision: 12871
    Author:   [email protected]
    Date:     2009-12-11 15:53:28 -0800 (Fri, 11 Dec 2009)
    Log Message:
    More new Spark acc impl files were missing svn:eol-style and svn:mime-type properties.
    QE notes: None
    Doc notes: None
    Bugs: None
    Reviewer: None
    Tests run: checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarBaseAccImpl.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListAccImpl.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TabBarAccImpl.as
    Property Changed:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ButtonBarBaseAccImpl.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListAccImpl.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/TabBarAccImpl.as

  • The content type for office excel 2007 in jsp page and the mime-type in  we

    Hi,
    In my system MS Office 2007 is installed. I am trying to generating excel sheets from JSP page by setting the content type "application/vnd.ms-excel" in jsp page and as well as in web.xml file. I am getting the below message
    The file you are trying to open, 'xxxxxxxx.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?
    Then finally the excel file is opening and displaying properly. If in my system MS Office 2003 is installed , then the above message is not coming.
    I have changed the content type according to Excel 2007 <%@ page contentType= "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" %> and in web.xml file the mime type to
    <mime-mapping>
    <extension>xlsx</extension>
    <mime-type>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mime-type>
    </mime-mapping>
    even the content type is changed according to office excel 2007 , i am getting the same above message.
    My client is asking not to display the above message. So how to prevent that message ?
    It's very great if any body reply me as soon as possible.

    Hi Akash,
    I am not using the POI. I am generating the excel sheet using the below code.
    <jsp:directive.page import="java.util.Map" />
    <jsp:directive.page import="lehman.ra.Report.ReportDefinition" />
    <jsp:directive.page import="lehman.ra.RAUtilBean" />
    <jsp:directive.page import="java.util.ArrayList" />
    <jsp:directive.page import="lehman.util.GeneralUtil" />
    <jsp:directive.page import="lehman.admin.report.AdminHtmlReportFormatter"/>
    <jsp:directive.page import="lehman.helper.irprod.IRProdHelper"/>
    <%@ page contentType= "application/vnd.ms-excel" %>
    <jsp:directive.page import="java.util.Iterator"/>
    <jsp:directive.page import="java.util.HashMap"/>
    <%
         String strTradeDate = (String) session.getAttribute("TradingDate");
         String sContextPath = request.getContextPath();
         IRProdHelper irHelper     = new IRProdHelper();
         String  sReportFormat  = "E2E";     
         String subtab1 = request.getParameter("subtab1");
         if (subtab1 == null)
              subtab1 ="";     
         Map report_Ids    = (Map) session.getAttribute("ADMIN_E2E_REPORTS");
         AdminHtmlReportFormatter formatter = new AdminHtmlReportFormatter();
         ArrayList contentData = new ArrayList();
         ArrayList headerData  = new ArrayList();
         ArrayList metaData    = new ArrayList();
         Map resultMap            = null;
         String headerString       = "";
         String contentString  = "";
         String reportId            = "";
         int titleSpan         = 5;     
         if( report_Ids!=null && report_Ids.size() > 0){
              Object oReportObj      = null;
              Iterator rowIter = report_Ids.keySet().iterator();
              RAUtilBean raUtilBean = new RAUtilBean();
              ReportDefinition rdef = new ReportDefinition();
              while ( rowIter.hasNext() ){          
                   oReportObj = rowIter.next();     
                   reportId = oReportObj.toString();
                   System.out.println("**************reportId="+reportId);     
                   resultMap  =  (HashMap) report_Ids.get(oReportObj);
                   if(resultMap == null )
                        continue;
                   if(resultMap.size() > 0 ) {
                        contentData          = (ArrayList)resultMap.get(GeneralUtil.CONTENT_DATA);
                        headerData          = (ArrayList)resultMap.get(GeneralUtil.COL_METADATA);
                        metaData          = (ArrayList)resultMap.get(GeneralUtil.METADATA);
                        rdef = new ReportDefinition();                    
                        raUtilBean.setReportAttributes(rdef, headerData, metaData,reportId, sReportFormat);
                        titleSpan = raUtilBean.findMaxCol(contentData, rdef.getDisplayCols());
                        if("51031".equals(reportId)){                         
                             if(resultMap.get("HIDE_ETA")!=null){
                                  boolean hideETA = ((Boolean)resultMap.get("HIDE_ETA")).booleanValue();                              
                                  formatter.setHideETA(hideETA);
                                  if(hideETA){
                                       titleSpan = titleSpan-1;
                        rdef.setMaxCol(titleSpan);
                        headerString = formatter.constructHeadingForE2E(rdef, headerData);
                        contentString = formatter.constructContentForE2E(rdef, contentData, strTradeDate, sReportFormat);
    %>     
    <html xmlns:o="urn:schemas-microsoft-com:office:office"
         xmlns:x="urn:schemas-microsoft-com:office:excel"
         xmlns="http://www.w3.org/TR/REC-html40">
         <head>
         <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
         <meta name="ProgId" content="Excel.Sheet"/>
         <meta name="Generator" content="Microsoft Excel 9"/>
         <link rel="File-List" href="./Test33_files/filelist.xml"/>
         <link rel="Edit-Time-Data" href="./Test33_files/editdata.mso"/>
         <link rel="OLE-Object-Data" href="./Test33_files/oledata.mso"/>
         <link href="<%=sContextPath %>/llehman.css" rel="stylesheet" type="text/css">
         <link href="<%=sContextPath %>/llcontent.css" rel="stylesheet" type="text/css">
         <style>
         <xsl:comment>
         table
              {mso-displayed-decimal-separator:"\.";
              mso-displayed-thousand-separator:"\,";}
         .style0
              {mso-number-format:General;
              text-align:general;
              vertical-align:bottom;
              white-space:nowrap;
              mso-rotate:0;
              mso-background-source:auto;
              mso-pattern:auto;
              color:windowtext;
              font-size:10.0pt;
              font-weight:400;
              font-style:normal;
              text-decoration:none;
              font-family:Arial;
              mso-generic-font-family:auto;
              mso-font-charset:0;
              border:none;
              mso-protection:locked visible;
              mso-style-name:Normal;
              mso-style-id:0;}
         .xl21
         {mso-style-parent:style0;
         color:black;
         font-size:8.0pt;
         font-family:Arial, sans-serif;
         mso-font-charset:0;
         border-top:.5pt solid silver;
         border-right:.5pt solid silver;
         border-bottom:.5pt solid silver;
         border-left:none;}
         .xl24
              {mso-style-parent:style0;
              mso-number-format:"\#\,\#\#0\.00_\)\;\\\(\#\,\#\#0\.00\\\)";}
         .xl25
              {mso-style-parent:style0;
              mso-number-format:0%;}
         .xl26
              {mso-style-parent:style0;
              mso-number-format:"\#\,\#\#0_\)\;\\\(\#\,\#\#0\\\)";}
         .xl27
         {mso-style-parent:style0;
         background-color:#666666;
         color:#FFFFFF;
         font-size:9.0pt;     
         font-family:Arial, sans-serif;
         mso-font-charset:0;
         text-align:left;
         vertical-align:middle;
         border-top:none;
         border-right:.5 pt solid silver;
         border-bottom:.5pt  silver;
         border-left:none;
         mso-pattern:auto none;
         white-space:normal;
         .xl55
         color:black;
         font-size:8.0pt;
         font-weight:700;
         mso-style-parent:style0;
         mso-number-format:"\#\,\#\#0_\)\;\[Red\]\\\(\#\,\#\#0\\\)";
         mso-pattern:auto none;
         font-size:9.0pt;
         font-family:Arial, sans-serif;
         mso-font-charset:0;
         text-align:right;
         border-top:none;
         border-right:.5pt solid silver;
         border-bottom:.5pt solid silver;
         border-left:none;
         .xlDate{
         mso-style-parent:style0;
         mso-number-format:"yyyy\\-mm\\-dd";
         .xlDateTime{
         mso-style-parent:style0;
         mso-number-format:"yyyy\\-mm\\-dd\\ h\\:mm\\ AM\/PM";
         </xsl:comment>
         </style>
         <xml>
          <x:ExcelWorkbook>
           <x:ExcelWorksheets>
            <x:ExcelWorksheet>
              <x:Name><%=subtab1%></x:Name>
              <x:WorksheetOptions>
               <x:ProtectContents>False</x:ProtectContents>
               <x:ProtectObjects>False</x:ProtectObjects>
               <x:ProtectScenarios>False</x:ProtectScenarios>
              </x:WorksheetOptions>
            </x:ExcelWorksheet>
           </x:ExcelWorksheets>
          </x:ExcelWorkbook>
          </xml>
         </head>
    <body text="#000000" style="margin-left:5px;margin-top:5px">
          <table border="0" cellpadding="0" cellspacing="0" width="100%">
              <tr>
                  <td>
                       <table  border='0' cellpadding="0"  cellspacing='0' width="100%">
                             <tr class="xl21">
                                  <td align="left" nowrap style='font-size:11px;' colspan="<%=titleSpan%>"><b><%=subtab1%></b> -  COB  <%=irHelper.formatDate(strTradeDate)%>  </td>
                                  </tr>
                         </table>
                   </td>
                </tr>
                <tr>
                     <td> </td>
              </tr>
    <!-- Report Processing -->
              <tr>
                   <td>
                        <%=headerString%>
                        <%=contentString%>
                   </td>
              </tr>
    <%
                   }//end of if
              }//end of while
         }//end of if report_Ids     
    %>          
         </table>
    </body>
    </html>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Image size and mime type.. non-java guy needs help

    Image size, mime type.. non-java guy needs help
    Im not at all familiar with java so this is really weird for me to work out. I?ve been doing it all day (and half of yesterday).
    Im trying to write a custom clodFusion tag in java that gets the width, height, size and MIME types of a given file. I?ve been trying to get it to work on the command line first. I can get the width and height but cant get the size and the MIME type.
    Here is what I got
    /*import com.allaire.cfx.*;*/
    import java.awt.image.renderable.*;
    import javax.media.jai.*;
    import com.sun.media.jai.codec.*;
    import java.io.*;
    import java.util.*;
    public class ImageInfo {
    private RenderedOp image = null;
    private RenderedOp result = null;
    private int height = 0;
    private int width = 0;
    private String type = "";
    private String size = "";
    public void loadf(String file) throws IOException
    file = "80by80.jpg";
    FileSeekableStream fss = new FileSeekableStream(file);
    image = JAI.create("stream", fss);
    height = image.getHeight();
    width = image.getWidth();
    System.out.println(height + "\n");
    System.out.println(width);
    System.out.println(type);
    public static void main(String[] args) throws IOException {
    ImageInfo test = new ImageInfo();
    test.loadf(args[0]);
    can anyone please help me out to modify the above so I can also print the mime type and the file size to screen.
    thanks for any help

    any suggestions?

  • Mime Types for .ps1 files

    I am trying to setup IIS to display .ps1 files in text format (i.e. same way it deals with .txt files, where it displays the contents in the browser). I set it up to be a text/plain but it still prompts me to download the file when I browse to it.
    What else am I missing?

    Hi Daniel,
    Agree with Mr X, in addition, you can also refer to this similar disscusion:
    In your IIS Manager, select the server node on the tree, and click "MIME Types". Then click "Add..." on the right panel. For extension, set it to .ps1, and set the MIME type to text/plain.
    You can do this for a specific web application or virtual directory, too. If you are doing this through web.config, it would look something like this, please backup this configuration file before edit:
    <configuration>
    <system.webServer>
    <staticContent>
    <mimeMap fileExtension=".ps1" mimeType="text/plain" /><!-- or application/octet-stream -->
    </staticContent>
    </system.webServer>
    </configuration>
    Refer to:
    Download powershell (.ps1) file via ASP.NET
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Trying to Access SharePoint 2013 Rest Api in HTML page but getting Mime Type Exception with Status Success

    I am trying to invoke the SharePoint Rest Api using HTML page. I have included the Access Control Allow Origin to the web.config file. I am getting Readty State 4 and
    Status Success but still I am getting the below error.
    Refused to execute script from 'http://<server>/_api//web/lists?callback=jQuery172045857910416089_1430217181282&_=1430217363882' because its MIME
    type ('application/atom+xml') is not executable, and strict MIME type checking is enabled.
        <script>
            $(document).ready(function () {
                $("#KMPDiscussions").click(function () {
                    //$.support.cors = true;
                    $.ajax({
                        url: "http://<server>/_api//web/lists",
                        dataType: "jsonp",
                        type: "GET",
                        method: "GET",
                        contentType: "application/javascript",
                        headers: {
                            "content-type":
    "application/json;odata=verbose",
                            "accept": "application/json;odata=verbose",
                        success: function onSuccess(data) {
                            alert("Inside Alert");
                        error: function onError(data){
                            alert("Error: "
    + data);
        </script>
    It always hits the error on callback.
    Is there any other way that I can invoke SharePoint Rest Api from a Cross Domain. Please Help.

    Hi Chris,
    Thanks for the reply,Here iam using different files to be uploaded in library.
    please find the below snapshot of json response and ULS logs.
    12/22/2013 18:31:15.02 w3wp.exe (0x3338) 0x401C SharePoint Foundation Files 
    abq2i High Could not get DocumentContent row: 0x80004005. 79f7629c-4694-c026-
    3349-2049178ee919
    12/22/2013 18:31:15.02 w3wp.exe (0x3338) 0x401C SharePoint Foundation Files 
    aiv4w Medium Spent 0 ms to bind -1 byte file stream 79f7629c-4694-c026-3349-
    2049178ee919 
    12/22/2013 18:31:15.02 w3wp.exe (0x3338) 0x401C SharePoint Foundation Files 
    aise3 Medium Failure when fetching document. 0x80070012 79f7629c-4694-c026-
    3349-2049178ee919
    12/22/2013 18:31:15.39 w3wp.exe (0x3338) 0x0D4C SharePoint Foundation 
    Database ab1a9 High Failed to get document content data.
    System.ComponentModel.Win32Exception (0x80004005): Cannot complete this function     at
    Microsoft.SharePoint.SPSqlClient.GetDocumentContentRow(Int32 rowOrd, Object
    ospFileStmMgr, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres) 
    79f7629c-76ab-c026-3349-2c9132b13e9a
    12/22/2013 18:31:15.39 w3wp.exe (0x3338) 0x4184 SharePoint Foundation 
    Database ab1a9 High Failed to get document content data.
    System.ComponentModel.Win32Exception (0x80004005): Cannot complete this function     at
    Microsoft.SharePoint.SPSqlClient.GetDocumentContentRow(Int32 rowOrd, Object
    ospFileStmMgr, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres) 
    79f7629c-76ab-c026-3349-281167b6cd09
    Thanks again,
    Naresh.

  • Mime-type question Gnome

    In Gnome I noticed something very strange. If I take an HTML file and name it helloworld.htm or helloworld.html then it shows up as a Mozilla bookmark with a mozilla bookmark icon. If I change the name to just "helloworld" then it lists as an html page.
    This isn't a huge problem, mostly aesthetic because the html icon is nicer, but does anyone have any idea of how to get the files with html extensions to show up as html pages and not bookmarks?
    I have the following mime related files installed:
    current/mime-types 1.0-1
        Provides /etc/mime.types
    extra/gmime 2.2.10-1
        Core mime parsing library
    extra/gnome-mime-data 2.18.0-3 (gnome)
        The base MIME and Application database for GNOME
    extra/nail 11.25-2
        A mail user agent derived from Berkeley Mail 8.1 and contains builtin
        support for MIME messages and IPv6
    extra/perl-file-mimeinfo 0.14-1
        Determine file type
    extra/perl-mime-lite 3.01-1
        Perl module that provides lightweight MIME generator
    extra/shared-mime-info 0.22-1
        Freedesktop.org Shared MIME Info
    community/mime-editor 0.5-1 (rox-desktop)
        Shared-mime info database editor, useful for changing MIME-type info in rox
        applications
    community/pantomime 1.2.0pre2-1
        A set of Objective-C classes that model a mail system
    community/perl-mime-parser 5.420-2
        Perl/CPAN Module MIME::Parser : Parses streams to create MIME entities
    community/perl-mime-types 1.19-2
        Perl/CPAN Module MIME::Types : Information and processing MIME types
    community/synce-libmimedir 0.4-1
        provide a means of communication with a Windows CE device - library that
        parses MIME Directory Profile.

    neodreams wrote:I have the same problem, you're not alone
    That does make me feel better... but no one honestly has any idea of how to fix this???

  • Downloading spreadsheet mime types via weblogic 6.1

              I'm having a problem with a jsp file -- within the weblogic v6.1
              server environment that wasn't occuring when using v4.5.1.
              The jsp page in question is supposed to handle downloading a
              spreadsheet file via a 'post' method from within another
              (calling) jsp page. The code that (used to) do this looks like
              this:
              <%
              System.out.println("Debug -> /GetSpreadSheet.jsp -> begin");
              //response.setContentType("text/plain");
              response.setContentType("application/vnd.msexcel");
              response.setHeader("Content-disposition", "attachment; filename=list.csv");
              // This is the java class object (previously saved as a
              // session variable) that contains the spreadsheet data
              CList cList = (CList)session.getValue("nameSpace.cList");
              String csvOutput = cList.getCSVOutput();
              // This doesn't work either...
              //String csvOutput = "Testing 1-2-3";
              PrintWriter pw = response.getWriter();
              pw.println(csvOutput);
              pw.close();
              %>
              Note: As you can see, I'm not actually opening an existing
              'csv' file via some file I/O code -- but instead taking a 'csv'
              formated String object 'csvOutput' and feeding it directly to
              the PrintWriter println method.
              With the v4.5.1 app server, when the user acknowledged the
              expected 'download file' dialog box and specified the location
              on his PC to download file, the desired results would happen
              (the file is downloaded). With the 6.1 app server, this jsp
              file goes into a loop (based on entries in a debug log file)
              before eventually timing out. The browser (both NS & IE)
              displays an error page and the file download doesn't happen.
              My original web.xml file (in DefaultWebApp/WEB-INF directory) was
              as follows:
              <?xml version="1.0" ?>
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.
              //DTD Web Application 1.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <welcome-file-list>
              <welcome-file>index.html</welcome-file>
              </welcome-file-list>
              </web-app>
              After reading through some suggestions of some of the WL
              newsgroup postings, I changed it to:
              <?xml version="1.0" ?>
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.
              //DTD Web Application .2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <welcome-file-list>
              <welcome-file>index.html</welcome-file>
              </welcome-file-list>
              <mime-mapping>
                   <extension>xls,csv</extension>
                   <mime-type>application/vnd.msexcel</mime-type>
              </mime-mapping>
              <mime-mapping>
                   <extension/>
                   <mime-type>application/vnd.msexcel</mime-type>
              </mime-mapping>
              </web-app>
              This didn't help. There was no change with the problem.
              Is there anyone out there who knows the secret to this mystery?
              Thanks,
                   -- WC
              

    The problem is that the example obj.conf is wrong.
    Init fn ="load-modules" func....
    This entry belongs in the magnus.conf file (not in the obj.conf file). Place it
    at the end of the file. This will be corrected in the documentation but until
    then
    "yung" <[email protected]> wrote:
    >
    Hello,
    I am having some problems with the plugin for IPlanet6.1 sp1 with Weblogic
    6.1.
    I know that this can be fixed really quickly if someone can provide
    a sample
    obj.conf file and a Mime.types file. I am trying to forward by MIME
    type. Here
    is one of the errors that I am getting (in the error log).
    Thanks in advance.
    [29/Oct/2001:08:43:18] failure ( 2696): Invalid configuration: File C:\iPlanet\Servers\https-yung-w2k.ind.corp.gwl.com\config\server.xml,
    line 31, column 11: Error processing obj.conf line 5: init functions
    are not allowed
    in this objset
    [29/Oct/2001:08:43:18] info ( 2696): Suspend Httpd Service

  • MIME-TYPE is stored incorrectly sometimes, browsers can't display html content

    Our company is switching from Netscape Communicator to Internet Explorer 5.5 . This resulted sometimes in html-documents which could not be opened in netscape anymore, but caused the save-as dialogue box to pop-up.
    Analysis of this problem, with the aid of Oracle Support, showed some html-documents were stored in WWV_DOCUMENT with mime-type application/octer-stream. This is a mime type which should trigger the save-as pop-up dialogue in browsers. Netscape acts accordingly, but IE does display the content normally.
    The following events cause this problem:
    1. create a html document using a microsoft office product (word/excel)
    2. DON'T close the document in the office application
    3. Use the portal wizard to upload the file to a content area
    4. Use table WWV_THINGS and WWV_DOCUMENT and see mime-type isn't text/html but application/octet-stream
    5. IE shows the file, NN wants to save it.
    The workaround to this problem is to close the file in MSOffice before uploading it.
    Oracle Development confirmed it's the browser which sends this incorrect mime-type, and portal just stores this type. It seems this mime-type is overruling the extension to mime-type mapping in the configuration of Apache, using AddType or the file mime.types.
    So the mime-types defined in apache are only used outside mod_plsql, that is, when files from the filesystem of the webserver itself are used.
    When uploading a zip-file, and unzipping it in the database, all files get the right mime-type. It seems in this situation the mime-type is determined by looking either at the file-extention or the magic bits.
    Oracle says it's a microsoft bug, so I'll have to ask Bill for a fix.
    They are probably right, and I think I could reproduce this using CGI-scripting without modplsql and portal.
    But:
    It seems not logically to me that it depends on the method of uploading files (single files, or zipped files) which method of mime-type determination is used.
    Furthermore, I find it strange that it depends on the storage location of the file (database or filesystem) which mime-type is presented at the user.
    I'd like to hear your opinions about this
    Regards,
    Ton Haver

    You want to be using <html:link forward="YOUR_FORWARD"> only when you want to forward to static elements and not elements that require actions. So in index.jsp, since you just want to forward to a static jsp page (allarticle.jsp), you can use
    <html:link forward="show">Show All forum</html:link>But since you want your "one forum" link to populate a session attribute BEFORE loading /jsp/loveforum.jsp, you need
    <html:link action="article">one forum</html:link>The reason it's not working now is because you're accessing a session attribute that isn't populated becuase you link to the page statically and it never gets the value of "list" actually stored in the session.
    The reason it works when you change your forward element is because it calls the action that saves "list" into your session.

  • "file -i" and "xdg-mime" reports wrong mimetype for zip files

    If I run "file something.zip" it returns "Zip archive data" as it should, but if I run "file -i something.zip" or "xdg-mime query filetype something.zip" they both return "application/octet-stream; charset=binary" instead of "application/zip; charset=binary".
    I already tried to
    remove /usr/share/mime/mime.cache and ~/.local/share/mime/mime.cache, then run update-mime-database on both folders
    delete the whole ~/.local/share/mime folder
    remove and reinstall mime-types and shared-mime-info
    without any success.
    I hope someone can help me on this because I've ran out of ideas.

    I too got annoyed at those unreliable mime-type inspectors and went searching for a better one that used the command line. I found "perl-file-mimeinfo" which comes with a wonderful script called "mimetype".

  • How to Configure a Servlet Chain Using MIME Types with weblogic5.1?

    Hi ,
              I want to configure a servlet(cocoon) in weblogic 5.1 such that the
              servlet so configured is invoked each
              time a response with the mime-type "text/xml" is generated.
              1.) will weblogic support to configure a servlet with a particular
              mime-type so that it post-process any
              servlet's response with the corresponding mime-type?
              2.) if not what is the alternative?
              Thanks
              sumanth
              [sumo.vcf]
              

    We suggest that use the request dispatcher interface instead. Servlet
              chaining is not a standard's based possibility.
              Michael Girdley
              WLS Product Manager
              Sumanth Chinthagunta <[email protected]> wrote in message
              news:[email protected]..
              > Hi ,
              > I want to configure a servlet(cocoon) in weblogic 5.1 such that the
              > servlet so configured is invoked each
              > time a response with the mime-type "text/xml" is generated.
              > 1.) will weblogic support to configure a servlet with a particular
              > mime-type so that it post-process any
              > servlet's response with the corresponding mime-type?
              > 2.) if not what is the alternative?
              >
              > Thanks
              > sumanth
              >
              

  • No CGI or MIME types support in AS8???

    We're currently running AS7 and are looking at a possible move to AS8 due to some bugs in AS7 that Sun doesn't want to fix. However, this looks to be a difficult proposition, at best, as the AS8 release notes seem to indicate that CGI and the mime.types file features of AS7 are no longer supported.
    While all of our new development is in J2EE, we have legacy CGI apps that need to continue to be used. We also have uncommon content that in the past has required that we define entries in the AS7 mime.types file in order to get the client to handle the downloads properly.
    Has anyone gone through this migration that can explain what an appropriate solution to this issue is? The AS8 release notes and migration guide simply state that they are not supported, but give no suggestion as to how to replace them.
    Thanks,
    Bill

    Hi
    Right know we are also facing this problem i guess.
    How do you make 8.1 Standard Edition aware of mime for jnlp so that webstart can be used ??
    Jan

  • Anyone figured out a way to use JWS without needing the MIME type preloaded

    Anyone figured out a way to use JWS without needing the MIME type preloaded on the client's computer?
    Why is it not server-side loading? How can I force a load of JWS and the MIME-type?

    when you install web start, the mime type jnlp is associated with WEBstart.
    The WEB start home page has code to request an
    install if web start is not on the user system.
    On the web server, of course you need to specify the association between a
    .jnlp file and the mime type. This is in the configuration of the server.
    It would be nice if standard ISP's provided that for user directories.
    Anyone think AOL would do this?
    After all it should not cost anything like installing servlets.

  • IIS and Inherited/Local MIME Types

    Alright guys I've spent a good 3 hours this morning finding out why images/css wouldn't work in a proof of concept environment with Server 2012/SQL 2014. My application has been far from easy to get working. I have 3 environments that have MIME type .woff set to local and my new one is using inherited. (I had to remove the entry in the web.config for this to pull properly via browser.) I was wondering how I can get this one set to local as well but it's currently only working with inherited without the web.config entry of: Just trying to make all environments consistent so when I do deploy new builds I avoid any unneeded complications. Thanks in advance for the assistance!
    This topic first appeared in the Spiceworks Community

    [att1.html]

  • File Download and Mime-Types

    I have some files (txt, xls, rtf, pdf) that need to be downloaded from our site. I
    have an http link to the files on the web page. I've set mime-types for each file
    type in web.xml for that web app. I'm using WLS 6sp2 on Windows 2K. I'm using an
    MVC model for the application with a Controller servlet. Every time anyone tries
    to click on the link and download it, the Contorller kicks them to a default page.
    Can anyone help?
    Thank you.

    Go to IIS Management console. At the server level, go to MIME Types. Add a new MIME type:
    File name extension:
    .mp4
    MIME type:
    video/mp4
    Restart IIS (can't remember if this is required).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Maybe you are looking for

  • Problem with photo book created in Aperture 3

    Hi everyone, I am in a bit of a bind and would greatly appreciate any help ASAP! I ordered a hard-cover photo book that was created in Aperture 3.  When previewing the order, we noticed that the photo for the cover of the book was missing (though it

  • Problem while opening Excel through OLE

    Hi Friends I am facing a problem while opening an excel file through OLE. it is working fine in SAP ECC 5.0, but the problem is in ECC 6.0. I am adjusting the cells for auto fit. I have written the code like below. CALL METHOD OF e_appl 'CELLS' = e_c

  • Fullscreen on CD not working

    I have followed instructions for creating fullscreen .swf file as final captivate to be viewed from CD ROM. Autorun is as follow: quote: [autorun] open=explorer.exe CEOF_Mstr_Comp.htm shell=runit shell\runit\command=explorer.exe CEOF_Mstr_Comp.htm sh

  • Utility folder icon not displaying like App folder icon?

    Hi- noticed when I drag the system Utility Folder into the Finder Toolbar it does not display similar to the Applications folder - not the Sidebar, but the horizontal toolbar holding the view option buttons (as a favorite item). The Applications fold

  • Cast string to single precision

    Hi, I try to write a communication between a PC and a DSP which is programmed to understand some kind of ModBus. I tried to use MBmaster.vi, a freeware of AIRtech in the netherlands. I was successfull to 90% after a very short time - I get back a str