Custom file extensions

I am looking for a way to configure CF to respond to requests
with extensions other than .cfm
I found the KB
article
about alternate extensions for the built in web server, but would
like to do the same on IIS.
Example:
http://wwwroot/aDocumentForMe.pdf
I would like CF to process this with some conditional
processing and return a custom PDF with <CFDOCUMENT>.
I've tried using <cfheader name="content-disposition"
filename="inline; aDocumentForMe.pdf"> in a normal .cfm but
Internet Explorer seems to ignore this.
At some point it might be nice to have CF respond with
"calculated" .gif files also.

Yes, thanks.
That does work but there are still two issues left with this
approach:
1. It brings up an "open or save" dialog.
2. The URL I need to distribute must end in .pdf
I need to have ColdFusion parse the CFML in a text file saved
with a .pdf extension just as if it were a .cfm. There is a way to
do it with the built in web server. There must be an equivalent
technique for IIS.
I've tried using the "Configuration..." on the "Home
Directory" tab of the "Web Site Properties" to add an Application
Mapping for ".pdf" to "C:\JRun4\lib\1\jrun.dll". All that did was
send the actual text content to the browser window.
I also tried adding a new <servlet-mapping> to the
web.xml file (maybe not the
CORRECT web.xml file?)
Any further help is appreciated.

Similar Messages

  • DW CS3 - custom file extension no longer working correctly

    Hi - for a particular job, I needed to use a custom file
    extension .htmx and it has been working fine.
    However, I went into DW CS3 today, and the file opens in the
    DW editor, but the code coloring and code hints etc seem to be
    broken.
    I've checked the Extensions.txt and MMDocumentTypes.xml
    files, and all seems present and correct - see
    this screencast to
    see the problem.
    Any ideas why it's not working? (I'm on Vista Business, but
    it has definitely been working and now isn't....)
    Mike

    Well, I managed to fix it by overwriting my
    MMDocumentTypes.xml file with a clean version from another machine.
    Weird.

  • Custom File Extension for Microsoft Access Text Driver (*.txt, *.csv)

    I'm trying to use a custom file extension for the Microsoft Access Text Driver (*.txt, *.csv) driver.
    I have updated the FileExtns registry to have my new extension.
    When I issue the following it does not work.
    select [NoName] 
    from openrowset('MSDASQL'
               ,'Driver={Microsoft Access Text Driver (*.txt, *.csv)};
                    DefaultDir=c:\filedir'
               ,'select * from "file.lst"')
    If I make the file a .csv it works fine.  However, if it has an extension of not CSV or TXT (in this case .lst, which is in the registry setting) extension it throws the following error and cannot seem to find a solution to it. 
    OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Text Driver] Cannot update. Database or object is read-only.". Msg 7350, Level 16, State 2, Line 1 Cannot get the column information from
    OLE DB provider "MSDASQL" for linked server "(null)".
    In addition, (although I can probably find this elsewhere), I need to have the first line 'BLANK' so that it does not miss data (there is no header row).  Is there  a way to use OPENROWSET without BULK to basically include all rows as data?
    Any help is appreciated.

    Hi,
    According to your description, I did a test with your script, and got the same message as your post. Usually, by default, the Microsoft Access Text Driver (*.txt, *.csv) supports the four extensions file, such as *.asc, *.csv, *.tab, *.txt. To solve this issue,
    I recommend you try to save the LST file in the above format, then use OPENROESET to get data from the supported extensions file in SQL Server.
    In addition, the
    OPENROWSET function is mainly used to retrieve remote data from an OLEDB data source, when you use OPENROWSET without BULK, provider_name is a necessary parameter in the script. However, the OPENROWSET (BULK...) is mainly called from a SELECT…FROM clause
    within an INSERT statement, when importing bulk data from a data file into SQL Server table. Thus if you need to import bulk data, you should use the basic  syntax: INSERT ... SELECT * FROM OPENROWSET(BULK...), also there are some alternatives, such as
    BULK INSERT
    and
    BCP .
    Thanks
    Lydia Zhang

  • Can Firefox CS5 recognize custom file extensions as PNGs?

    WHen you work with game skins you will have custom file extensions such as .scworld and .scskin that are really PNG files renamed. Does anyone know how to add these as recognizeable extensions in Firefox?

    no, i am still dealing with this problem on both macs,
    mac pro mid 2010 2,8 quad (24GB RAM) and my mbp 15" i7 (4GB RAM)
    where i installed Photoshop CS5.
    on both macs, photoshop always saves files with capital letter file extensions (xxx.TIF or xxx.PSD)
    thats very annoying, as i have to manually rename the file in the finder later.
    and thats for all files i create.
    i really wonder, could anyone from the adobe staff please comment if it is a bug
    or anything else?
    thanks!

  • Opening BATCH file through custom file extension

    I have a situation where I've created my own filetype (.gme) to open my main java file. Each filetype has a corresponding ID which tells the application what instance of it to load. I want the file type to open a batch file which will in turn open the application. Is there code that I can give a custom file extension to open a batch file?

    Check the permissions of that batch file.
    It should be executable for the PI user (<sid>adm in Unix)
    Regards
    Stefan

  • Toshiba File Manager - working with custom file extensions

    Hi Developers,
       I am trying to create an App that handle a specific file extension. I impelemented the required functionality in the Application.
      When someone clicks on the file (say .xyz file) in a Third-Party file manager like AstroFileManager or ES Explorer, Android launches my application with the proper Intent ( ACTION_VIEW). How ever, if I browse to that specific directry using Toshiba File Manager, I get a message saying "There is no associated application for this file type."
     I tried several things and no dice. Does anyone know how I can register a handler for a specific extension for TFM?
    Thanks,
    Windozer

      event.target.info.<yourvariablename>

  • Syntax Highlighting for custom file extensions

    Hi everyone.
    I am currently working on a PHP project, and we are using
    *.thtml files for templates. The file isn't supported by
    Dreamweaver, as it's a fictional file extension. First I couldn't
    even open it with Dreamweaver, but after I added it in
    settings/file types, it worked.
    Now my question - how can I activate syntax highlighting for
    this filetype? It contains HTML and PHP, so it should work with the
    same highlighter as all the other file types do..
    Can someone help me out?
    Thanks.
    - Chris

    Got it
    http://alexle.net/archives/119

  • Custom file extensions and Sandboxes

    I have created a custom extension using the web.xml file,
    ConnectorInstall0.bat file and my webserver. The file serves up
    correctly and looks fine but the security sandbox does not work for
    my files with my custom extension! I can't find any information
    anywhere on this. Anybody have any ideas???

    Welcome to Apple Discussions
    Downgrading to 10.4 won't help much. The problem lies in AppleWorks being a Classic application that was carbonized to run in OS X. It just doesn't "understand" extensions. Although adding the period in Leopard is new, the problem with the error messages when you save an AppleWorks document as text or Word & add the appropriate extension is not new. I've given up & just add the correct extension in Finder.

  • Solr errors when indexing custom file extensions.

    Greetings!
    I am working on my company's public website and need to be able to index the web pages.  The site is configured to read .ak files as .cfm files, but Soler errors when trying to read them.  While testing I found that if I remove the <head> tags from the documents there are no errors.  I've looked into the Solr config files for a location to tell Solr that .ak files should be parsed as html.  I have been unable to find such a setting, does one exist?
    Thanks for your help,
    Dave

    Hi,
    Are you able to manually add new extension to the list?
    Try the troubleshooter under “Advanced Options” or rebuild the index for a test.
    If doesn’t work, then let’s go deeper for this issue.
    Open registry, expand, HKEY_CLASSES_ROOT
    Under this entry, there should be a bunch of file types, I did a test, if I delete a file type in it, for example .txt, then when I open the index option again, advanced option, file type, I’ll no longer find the txt extension in the list, so you may check
    the keys in case the registry is broken.
    Regards
    Yolanda
    TechNet Community Support

  • How to assign file extension and custom icon to executable?

    Hi all,
    I was reading an old thread about this issue:
    http://forums.ni.com/ni/board/message?board.id=170&thread.id=116925 
    I need to try to do this.  My application uses a custom file extension (i.e. .abc).  Upon installation I would like to:
    1.  Assign My App and custom icon to the file class (extension .abc).
    This could be done by manipluting the registry (http://msdn.microsoft.com/en-us/library/bb776856(VS.85).aspx)?  This could be a problem with Vista s unless registry operations occur during installation any changes are placed in a VirtualStore, correct?
    2.  Enable the double-clicking of .abc file type to pass the data in the file to my VI (exe). 
    According to the File Handling Guidelines of Jean-Pierre Drolet (http://www.openg.org/tiki/tiki-index.php?page=File+Handling+Guidelines) the best way to do this may be using LabVIEW as an ActiveX server.
    I know that when I build an executable (or installer?) there is the option to enable LabVIEW to act as an ActiveX server.  This much I know I need to do.
    I thought I would open this discussion again as others may be interested and there doesn't appear to be a completely clear solution available.  Please do contribute where you can.
    Cheers,
    Battler.

    battler. wrote:
    My application consists of Event Structure.
    How to register for ommand line event so that when a user double-clicks on a .abc file I can handle the opening of it?
    This needs to work (the files need to open) not only when the application is closed but also when it's already open.
    Anyone have ideas? 
    The solution to that is to implement a DDE server in your application (and add DDE entries to the registry on installation). There are still DDE functions in LabVIEW vi.lib\Platform\dde.llb but they are considered depreciated and have been removed from the palette, also because Microsoft is trying to tell everyone that DDE is depreciated and sort of unsupported too. But it is still the mechanisme to pass actions from the shell to running applications.
    I hesitate to send you over to lavag.org where there have been some discussions about this years ago. If you go there you would do good to employ a friendly attitude. That board is run all by enthusiasts and idealists and they are all great folks but react not very friendly to people with an attitude.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Dreamweaver as custom editor for other file extensions

    So, I'm working on a project that requires me to work on some
    files with non-standard extensions. Namely, I have some text files
    that have a .cm extension, and I have some code files which have no
    extension at all. I am connecting to my file store via an FTP
    "site" set up in Dreamweaver.
    Under preferences->filetypes/editors, I set up ". .cm" for
    those two cases, and had selected "Dreamweaver" as the primary
    editor.
    The files open just fine, and I'm able to edit and save them,
    and when I do, the files get "PUT" back up to the FTP server as I
    want. However, what I've noticed is that the first time I edit one
    of those types of files, and save it, now, from then on in that
    session of Dreamweaver, any time I de-focus the window and then
    come back to it, the IDE initiates another PUT action of the files
    in question, even if the files are unchanged.
    However, if I go back into preferences, and remove the
    "Dreamweaver" as the primary editor for those two extensions, and
    leave that list blank, Dreamweaver still is able to open up the
    files as I want, but this weirdness with FTP putting and the
    window-focus goes away.
    Anyone have any idea why?

    This TechNote explains how to add file extensions to be
    recognized by DW.
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16410
    Unfortunately, DW does not handle file with no file extension
    very well.
    HTH,
    Randy
    > So, I'm working on a project that requires me to work on
    some files with
    > non-standard extensions. Namely, I have some text files
    that have a .cm
    > extension, and I have some code files which have no
    extension at all.

  • How to Test SSRS Custom Data Extension in TSql

    Hi There,
    I have created a custom data extenstion for SSRS 2008 Reporting Service.
    I can test the CDE in the Report DataSet -> DataSet Properties -> Query Designer -> Run Query.
    In the Command Text I pass parameters to the invoked VB code which is of type "BaanstedeCds" then name of my custom data extension.
    I can even Attach the Visual Studio VB Code Project that is invoked by the Query Designer an debug the code.
    The custom data extension works perfectly in SSRS.
    However I have not found a way yet to run BaanstedeCds (with a parametertext) from within SSMS 2008 by using an T-SQL statement!!! Is there a way to use the SSRS Custom Data Extension in Sql Server Management Studio using the dataset type I used in
    SSRS 2008?
    Because I am leaving the path of using Custom Assemblies in SSMS, for deploying an testing that way is undoable for me.
    I is to complicated and in order to properly debug these routines the entire solution of multiple projects is deployed each time even the slightest change has been made to the VB code. Also if I want to deploy from Test to Production it is very hard. I have
    to detach the databases etc, ect.  Note my previous question about this subject that remained unanswered!!!
    Using the Custom Data Extension the problems are a lot less. However I how do I use a routine in the CDS in T-SQL, like I could invoke a routine in the Custom Code Assemblies?
     I "hate" CLR routines. I have extreme trouble managing these CLR's as I explained in my post and other posts in the past.
    You just cannot build a maagable system that way.
    I had to convert all the CLR's (I had a lot of them) to Custom Data Extension Functions, as they do not have all the drawbacks  of CLR's.
    And using the CDE with all the converted CLR's in it works much better for me in the Report Manager.
    However in order to test de CDE I must invoke the CDE in a Windows Form something like this:
    Private Sub cmdGetData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdGetData.Click
    Dim CommandText As String = ""
    ' Get Parameters for CDE GetData
    CommandText = txtAdoCds.Text
    Dim Rdr As New BstCds.BaanstedeCdsReader(CommandText)
    ' Invoke GetData Function of CDE Rdr
    ' Input: CommandText: txtAdoCds.Text = TextBox on TestForm
    ' Output: DataTable: RdrDataTable
    Call Rdr.GetData(CommandText)
    If Not Rdr.RdrRetVal Then
    GoTo End_Method
    End If
    ' Show DataTable: RdrDataTable (in Excel)
    If Not BstOff.ToonTabel(DataTabel:=Rdr.RdrDataTable) Then
    Exit Sub
    End If
    End_Method:
    End Sub
    '=========================================================================
    ' File: BaanstedeCdsReader.vb
    ' Summary: Provides a means of reading one or more forward-only streams
    ' of result sets obtained by executing a command at a data source,
    ' and is implemented by Baanstede Data Processing Extensions
    ' that access BaanstedeIw3-routines.
    '=========================================================================
    Public Class BaanstedeCdsReader
    Implements IDataReader
    #Region "Public Variables"
    Public RdrRetVal As Boolean = False
    Public RdrSqlSel As String = ""
    Public RdrDataTable As DataTable = New DataTable
    #End Region
    #Region "Constructors"
    #End Region
    #Region "IDataReader Members"
    #End Region
    ' GetData '
    #Region "GetData Method"
    '==================================================================================================
    'We are executing the command using the connection string that connects to the Active Directory.
    'Hard coding of the connection string is because it is the same for all the ADs.
    'Once we read the data using a DataReader, we place the same in a DataTable so that can be used for
    'Other processings.
    ' Public Sub GetData(ByVal _CommandText As String)
    ' Output in Public RdrDataTable As DataTable
    '==================================================================================================
    Public Sub GetData(ByVal _CommandText As String)
    ' Ophalen Data in DataTabel '
    RdrRetVal = False
    ' Fills RdrDataTable Using _COmmandText
    RdrRetVal = True
    End Sub
    But can I invoke Report Manager Source Type BaanstdeCds's .BaanstedeCdsReader.GetData(CommandText) in TSQL any other way then using CLR ?
    Regards Jos
    It works, but it does not work (The program runs, but does not produce the desired result)

    Hi Josje,
    Thank you for your question.
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • How to create a custom file dialog box/vi (win)??

    Hello,
    I'd like to create a custom file dialog box to handle the reading of my tdms files. Basicly I want to extend the existing file select dialog box with a graphical preview of the data in the selected file. I know I can create all the logic for file selection by hand and use a list box to display the filelist, but I would rather prefer to somehow use the existing windows controls. So is it possible to get the windows file selector on the front panel of a vi and react to the user selection? If so, is there any example available on how to do this? Any other options? I'm using labview 8.2
    thanks for your input!
    klaus

    Klaus,
    I wouldn't know that Microsoft provides access to the controls that Explorer and file dialog consist of.
    There might be a different and more powerful solution though. The
    WINDOWS Explorer / file dialog have a plugin API that allows you to
    associate your own application for thumbnail creation with a particular
    file extension. That way, TDMS thumbnails will show in any instance of
    Explorer and
    File Dialog without you having to make your own dialog. Basically, you
    would need to compile the VI that creates the thumbnail into a
    LabVIEW-built DLL and then wrap this DLL with some C++ boilerplate code
    that Microsoft provides. You might want to have a look at the bottom of
    this article to get an idea of how the whole thing works:
    http://msdn.microsoft.com/msdnmag/issues/0600/w2kui2/default.aspx.
    Hope that helps,
    Herbert

  • Custom File Finder

    Hi everyone,
    I am trying to build a custom file finder to search for my mp3 files on my computer. As you can see my nickname, I am a DJ, so I have lots of mp3 files on many directories on my PC and sometimes it's difficult for me to find the song I am looking for. I want to take advantage of JAVA to build my file finder. I am planning on having two command line arguments. One with the path string and another with the filename and extension. (Just in case I want to use to find other files than .mp3 such as .wma, and .avi.)
    If you guys have any ideas how I can do this, please let me know. Also, if you have any example or references I can study from, I will really appreciate it.
    Thanks in advance.

    Like I said before, I was trying to write a code to search for files on my computer. The program would ask me for the path, and also for the filename and its extension. After that, the program would scan the whole directory and after the whole directory was scanned, I would get a list of all the files in there and the path of the file I was looking for. (only if the file was found.)
    After reading the file class, I got this code but I am not getting the path for the file. I only get the list of all the files on the directory. I think I got a logical error somewhere because the program is compiling and I am not getting run-time errors.
    If anyone have any suggestions on how I can fix my code or knows how to improve it, please let me know.
    Thanks in advance.
    import java.util.*;
    import java.io.*;
    public class FileFind
        static final int      MAX_DEPTH  = 20;  // Max 20 levels (directory nesting)
        static final String   INDENT_STR = "   ";                 // Single indent.
        static final String[] INDENTS    = new String[MAX_DEPTH]; // Indent array.
        static boolean done = false;
        static String found = "not found";
        //===================================================================== main
        public static void main(String[] args)
            //... Initialize array of indentations.
            INDENTS[0] = INDENT_STR;
            for (int i = 1; i < MAX_DEPTH; i++) {
               INDENTS[i] = INDENTS[i-1] + INDENT_STR;
            System.out.println("Enter the directory you want to search.");
            System.out.println("Do not use quotations marks. Use \\ instead of \"");
            Scanner input = new Scanner(System.in);
            File dir = new File(input.nextLine());
            //===============================================
            System.out.println("Enter the file name and its extension");
            System.out.println("Do not use quotations marks.");
            File filename = new File(input.nextLine());
            if (dir != null && dir.isDirectory()) {
                listRecursively(dir, 0);
                //====================
                if(dir.getName().equals(filename.getName())){
                     done = true;
                     found = filename.getPath();
                //=============
            } else {
                System.out.println("Not a directory: " + dir);
            //======
            if(done == true){
                   System.out.println("The file's path is: "  + found);
              //=====
        //========================================================== listRecursively
        public static void listRecursively(File fdir, int depth)
            System.out.println(INDENTS[depth] + fdir.getName());  // Print name.
            if (fdir.isDirectory() && depth < MAX_DEPTH) {
                for (File f : fdir.listFiles()) {  // Go over each file/subdirectory.
                    listRecursively(f, depth+1);
    {code}
    Edited by: DJFONSO on Nov 10, 2007 10:12 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Custom File Info panels from PS into LR

    I have a large number of Custom File Info panels created for use within Photoshop that are imperative to our workflow of different departments. These Metadata strings are later read by Extensis Portfolio as our DAM tool of choice.
    I don't see to be able to find where to change this other than making minor tweaks to existing Metadata presets. Any clues hmmm? Ta

    alanterra wrote:
    there is no way to get the data in the original into the derived copy except by doing it by hand
    Better ways:
    1-1 or 1-many:
    (on the file menu: plugin extras) which brings up:
    If you want to do "many to many-others-like-them", you have to use a different plugin, like Relative Antics..
    alanterra wrote:
    If I understand it correctly, "Custom File Info panels" for xmp data should just solve this problem.
    Many of us are hoping Adobe enhances Lr to provide better support for custom metadata - as you've noticed, Lightroom is not one of those "Standard Adobe Applications" referred to in the above link.
    Rob

Maybe you are looking for

  • Time Evaluation Re Run

    Hi There, i was trying to run Time evaluation for the period 01.04.2011 to 31/12/2011. from April, that is 01.04.4011 to 30.06.2011 Time evaluation was good, now time evaluation has to run from 01.07.2011 but time evaluation has repeated from 12.06.2

  • Error In ECC 6.0 installation

    Hi All, I am installing Ecc6.0 SR2 on windows server 2003,but on phase 38 "PREPARE TO CONFIGURE AS JAVA " i am getting the following errors: 1.ERROR 2007-05-29 10:35:15 CJS-30156  SDM deployment failed for at least one of the components to deploy.<br

  • Some emacs questions

    Hi, all. Recently I became somewhat enthusiastic about the idea of using emacs as a DE. Basically, my reasons are that if you consider the extensions (or modes) for emacs to be apps, they have the following advantages: -they are all integrated from t

  • Field name is not known Error in formula field...

    Hi, I have a report in CR11.5 r2 that I call from VB6. The report works fine, until a I create this formula, Trim ({RSE.PatName}). When I put this formula field in a section in the report, I have this error, "Field name is not known Error". Any idea?

  • PDF File per VB (ASP) auslesen

    Ich wäre sehr dankbar, wenn irgendjemand einen Weg weiß, bestimmte Teile eines PDF Files mittels Visual Basic (Anwendung in einer ASP Site) auszulesen. Hat irgendwer eine Idee/kennt jemand ein Tool, dass eben diese Aufgabe löst? Danke im Voraus mfg A