Using MIME type to open file in different window

Hello, I am popping up a Save File Dialog Box for an Excel file being generated in my system using POI. I am using the MIME type to display this dialog. The problem is that if the user selects 'Open' instead of 'Save', it opens in the same window. Is there any way to set an attribute to tell it to open the file in a new, separate window?

Nope. The response is sent to wherever the request came from. If you want the response to open in a new window then the HTML that sends the request has to say that.

Similar Messages

  • The MIME type for xslx file is different in Mozilla 13.0.1

    The MIME type for a xslx file is coming as "application/vnd.ms-excel.12" in Mozilla 13.0.1 instead of the "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" which comes in other browsers when using fileUpload.PostedFile.ContentType

    Firefox usually gets the MIME type from the MIME database registry key.
    * HKEY_CLASSES_ROOT\.xslx
    * HKEY_CLASSES_ROOT\MIME\Database\Content Type

  • How to define "byte stream type" for "open file"?

    Hello,
    I created some numbers (type "double") in Matlab and stored in a file. What value should I use to specify the "byte stream type" for "open file" in Labview? Should I put something like "DBL" or "I32". I don't know where to find the list of legal "types" in Labiew help.
    Thanks so much!
    Felicia

    Looks like 7.1:
    The Matlab "double" is 64 bits (8 bytes). It doesn't make much sense to use an integer datatype to read a floating point value, so you would use DBL in LabVIEW. The numeric data types table can be found here.
    By the way, this assumes you saved the file as raw binary, as opposed to a .mat file, which is something different.
    Message Edited by smercurio_fc on 08-08-2008 11:21 AM
    Attachments:
    read file 7.png ‏13 KB

  • How To Get FileType and MIME Type from a File

    Hi,
    I am using following ways to get FileType and MIME Type.
    I am able to get file type, but I am getting MIME Type as */*
    Can any one please let me know how to get MIME Type, but it should not be time consuming process.
    For File Type I am using following Code:
    private String getFileData(InputStream inStream) {
    fileName = C:\temp\temp.tiff
    String filePath = Util.createTempFile(fileName);
    RandomAccessFile raf = new RandomAccessFile(filePath, "rw");
    while (inStream.available() > 0) {
         byte[] buf = new byte[inStream.available()];
         inStream.read(buf);
         raf.write(buf);
    inStream.close();
    raf.close();
    File file = new File(filePath);
    JFileChooser chooser = new JFileChooser();
    String fileType = chooser.getTypeDescription(file);
    file.delete();
    //MIME Type I am getting from
    DataHandler data = new DataHandler(new DocumentSource(inStream));
    data.getContentType();
    data.getContentType() is not working well in all cases.
    Can any one help me on this.
    Thanks in advance,
    Ram.
    Edited by: javausers07 on Apr 15, 2009 4:25 PM

    javausers07 wrote:
    Hi,
    I am using following ways to get FileType and MIME Type.
    I am able to get file type, but I am getting MIME Type as */*
    Can any one please let me know how to get MIME Type, but it should not be time consuming process.
    For File Type I am using following Code:
    private String getFileData(InputStream inStream) {
    fileName = C:\temp\temp.tiff
    String filePath = Util.createTempFile(fileName);
    RandomAccessFile raf = new RandomAccessFile(filePath, "rw");
    while (inStream.available() > 0) {
         byte[] buf = new byte[inStream.available()];
         inStream.read(buf);
         raf.write(buf);
    inStream.close();
    raf.close();
    File file = new File(filePath);Why do you do all above?
    JFileChooser chooser = new JFileChooser();
    String fileType = chooser.getTypeDescription(file);
    file.delete();
    //MIME Type I am getting from
    DataHandler data = new DataHandler(new DocumentSource(inStream));
    data.getContentType();
    data.getContentType() is not working well in all cases.That's because there's no way to get MIME type of all files on all filesystems.
    Kaj

  • Problem in opening excel file in different window

    hi
    i want to open excel file in different window it open in same window properly on the bases of condition but when i try to open in different with window.open( )
    it give error that file has already used or path not exist OR requisted site either unavailable
    how can i rectified

    Hi.
    I am too facing the same problem. I am using Jakarta Poi to display my resultset in an excel sheet directly(and not into a jsp)
    The browser opens a window showing Open Save Cancel. If i click and save the excel sheet and then open, it opens. But clicking on Open directly doesnt open the excel sheet. Rather it gives the same error
    The file name or path name does not exist.
    The file you are trying to open is being used by another progrtam . close the document in other program and try again
    The name of the work book your tring to save is the same as name of another document that is readonly .try saving workbook with different name
    Can somebody please help me fix this problem, since its an urgent requirement. Mail me at [email protected]
    Thanks
    Hitesh

  • (261705413) Q RPCC-21 Missing text/xml MIME-type for WSDL files?

    Q<RPCC-21> Would it mess up the SOAP operations that clients do when using the
    WSDL in a dynamic client to put a text/xml mime type in the WSDL-providing jsp?
    A<RPCC-21>: It is a known issue that the MIME-type for WSDL files is not appropriately
    transmitted so some web browsers will not identify an appropriate helper application
    when they are viewed (for Netscape just press Ctrl-U to view the source). This,
    however, does not affect the dynamic client as evidenced by the example code seen
    in the code demonstration.
    Adam

    SR,
    You probably already have the answer by now, but I just came across the same problem and found the answer elsewhere.
    The trick is to have the JavaMail jar in your classpath BEFORE the JAF jar. Given the habit of my development environment to sort jars alphabetifally it had me stumped for a bit.
    Good luck
    Marc

  • When I select "open a new tab" the tab opens in a different window than the one I'm using. This is release 11.0, and did not happen in 10.0

    When I select "open a new tab" the tab opens in a different window than the one I'm using. This is release 11.0, and did not happen in 10.0

    Hi,
    Please check if '''Open new windows in a new tab instead''' is enabled in '''Tools''' ('''Alt''' + '''T''') > '''Options''' > '''Tabs'''. [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Tabs%20panel Options > Tabs]. If the problem persists, please also check if this happens in a [https://support.mozilla.org/en-US/kb/Managing-profiles new profile]. If the new profile is okay, you can later [https://support.mozilla.org/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile?s=profile&r=1&e=sph&as=s copy the needed personal data] from the old profile. Firefox stores your personal data and settings in [http://kb.mozillazine.org/Profile_folder another location (profile folder)] separate from its [http://kb.mozillazine.org/Installation_directory files/folder]. A new profile would have the default Firefox settings ('''Tools''' ('''Alt''' + '''T''') > [https://support.mozilla.org/en-US/kb/Options%20window '''Options'''], and [http://kb.mozillazine.org/About:config about:config] ), and usually would also be empty of any '''Extensions''' and themes ('''Appearance''') in Tools > Add-ons) and their settings. Also, a new profile would have no previous stored website data/settings etc., ('''Tools''' > [https://support.mozilla.org/en-US/kb/Clear%20Recent%20History '''Clear Recent History''']).
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder & Files]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]

  • How to determine the MIME types of the files?

    I'm making an application, in which I've to upload the files to the database. Now I want to insert into the database the MIME type of the files. Now how can I know that which type of the file is having which MIME type?
    where can I get the list of all supported MIME types?
    Even if I get the list, then every time I update the file in the database, so every time I have to check the file extension and then insert the MIME type...
    this seems to be a tedioius job..
    Is there any simple way to do this?

    I could ask "supported by what?" but I assume you will
    be the one supporting them. Here's a link to the
    latest list of registered MIME types.HERE's the link...
    ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types

  • How to set Mime Type for Static Files

    Hi All,
    I am working on Apex 3.2.1.00.10.
    When I am trying to upload (create) a ".js" file into Static Files under Shared Components of an application; it is saving as "*text/plain*" for Mime Type. But I need Mime type to be set as "*application/x-javascript*".
    Please help me to change the Mime type of .js file.
    Or is there any way to upload the file directly as "*application/x-javascript*" as its Mime Type.
    Thanks in advance.
    Umesh

    In IIS v4 which comes with the Windows NT4 option pack, you right click the web page you are working with, select properties, then go to the HTTP Headers tab. At the bottom there's a button labelled File Types in the MIME Map section.
    After you've clicked that, you can add the two mime types you need;
    Associated Extension MIME Type
    .jar application/x-java-jar-file
    .jnlp application/x-java-jnlp-file
    I'm assuming that it is the same in W2k/IIS5.

  • How to use mime type..

    Hi frnds
    i have my data in a tabular format in jsp. my requirement is to create a EXCEL report for tht data using javascript (using MIME type change).
    can anyone help me to create xl report.

    Please search the forums. There are many discussions about it.

  • How to save open files in different projects/workspaces?

    Is it possible at all to have Dreamweaver save different sets of open files in different projects/workspaces like every other IDE out there?
    I can't imagine every web developer is working on ONE project at a time and doesn't feel the need to switch to another one and have his last open files restored from that specific project..
    Am I missing something?

    Very wrong
    I am talking about saving different sessions of open files automatically (and assign them to user-defined projects that may or may not contain several sites or just one site).

  • Cant use adobe reader to open file because i get a window saying i mush agree to the terms an condui

    Cant use adobe reader to open file because i get a window saying i must agree to the term and conditions before i use it.    no place to do this

    Mac HD/Applications
    Double click the Adobe Reader app and accept the agreement.

  • Get volumes displayed by default under Home when opening File Explorer in Windows 10 Technical Preview

    Scenario:
    In Windows 8.1, it is to display volumes under This PC by default when opening File Explorer, which is as shown in Figure1. However, in Windows 10 Technical Preview, it is not to display volumes under Home by default when
    opening File Explorer, which is as shown as in Figure 2. This articles describes a workaround to get volumes displayed by default under
    Home when opening File Explorer in Windows 10 Technical Preview.
    Workaround:
    This workaround is to edit some related Registry keys. Note: Please click
    Yes in the User Account Control prompt to continue. What’s more, before you make changes to a registry key or subkey, we recommend that you export, or make a backup copy, of the key or subkey. In this scenario, please backup the key
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer.
    Click Windows icon and type Folder option in Search box, and click
    Folder option to open it.
    Under View tab, clear the checkbox Hidden extensions for known file types
    in Advanced settings.
    Create a Text Document, copy the following lines into it, rename it as
    Fix.reg. Double click the file fix.reg and click Yes to run this file
    Windows Registry Editor Version 5.00
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HomeFolder\NameSpace\DelegateFolders\{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
    @="This PC"
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HomeFolder\NameSpace\DelegateFolders\{d34a6ca6-62c2-4c34-8a7c-14709c1ad938}]
    @="Favorites Folder"
    Open File Explorer again, and the new view is shown as the below picture:
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    i think what he want is to change the Win + E shortcut to This PC.
    I understand that is the goal. I've tried the registry hack, it works, but I found it left fragments of other files from "Home' scatter around in there too. We all been using this new version of windows for a few weeks now, built up a list of stuff
    we have looked at, and that is why I said it's not the prettiest solution. It might have been okay if it was done just after a fresh install. In my alternative solution, you are bringing the This PC icon out to a more accessible place so you
    don't have to use the File Explorer icon to get at the volumes i.e. hard drive view.
    Personally, when I launch the File Explorer, I am expecting to be looking for something straight away on my hard drives and not be presented with a list of stuff that I have already looked at. That kind of thing should be left
    in a Recent Folder sort of thing we use to see in the older versions of windows.

  • Hyperlink for an Object need to be open in a different window

    Hi Guyz,
      I have a Crystal Report which has few sub reports. In one of the Sub Report I have created a Hyperlink for an object using the formula Editor. This report is viewed from a different Portal with the help of ASP Pages. For some reason when I run the report and click on the Hyperlink, it is opening in the same window.
    I want the report to be opened in a different window. Following is the formula I am using as a Hyperlink in formula Editor.
    imgAddress = "http://<server>:8080/index.jsp?action=filter&username=anonymous&password=1&"
    imgAddress = imgAddress + "&drawer=Invoices&folder="  + "&tab=" + trim({stp_AC290;1.INVOICE})
    In the ASP page i am using a DHTML Viewer. Sometimes when I am using ActiveXviewer it is opening as expected.
    crystal Reports version: Crystal Reports 2008
    BO - BOXI 3.1
    Plz help me out!!

    same as your other post:
    moved to .NET Developer forum.
    It appears you are using ASP, it's no longer supported in CR 2008 but can you clarify which SDK you are using?
    Thank you
    Don

  • Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL..

    Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL. However, if I right click on a link and select "Open Link In New Tab", the Tab shows URL in address bar. So it's working when it's a New Tab but not a New Window.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

Maybe you are looking for

  • Where is Adobe Reader for Win7 64bit

    I installed Adobe Reader XI in my system with Win7 64 bit,and it won't work because is a 32bit. I need to know where can I get the 64 bit. Thank you.

  • How to create and share attributes or variables in Standard WebDynpro?

    Tremendous 2010 guys! I'm having trouble about a Web Dynpro ABAP application. It uses two Web Dynpro components: FITE_VC_GENERAL_DATA and FITV_VC_COST_ASSIGNMENT, and the users would like to delete showed-in-text-field default info in the first View

  • I want to delete the version I am running and then upgrade

    I am using a MacBook pro and having some issues with the touch pad (background info). I want to delete the current version of Firefox and up grade to FF 4.0.1 I can only find FF listed under 'Drives' in finder and am unable to delete it. I have downl

  • Service tax - vendor

    Dear all Vendor  1,103.00            Cr 18729001 PL-Vnd-Mtl 1,000.00          DR 26364211 Svc tx OH on svcs 100.00  DR 26364216 ECS OH on svcs- 2.00       DR 26364218 SEC OH on svcs-1.00        DR This is my miro entry and it is gong to on hold accou

  • Function @REMOVE doesn't work

    Hello, I'm trying to clear a block of data, but I'd like to remove just one member from the list before clearing. I'm executing the script below, and the member E10.1095 is not excluded. FIX(@DESCENDANTS("C6590000")) FIX(@REMOVE(@RELATIVE("ELQCO",0),