How to open non-HTML fiiles in the web browser???

Hi.. My project requires that I should be able to open all the non-HTML or HTML files in the web browser itself. Ex. If there is some pdf file or doc file or any other file it should open in the browser itself. If the appropriate plug-ins are not there then it should first ask to download those plug-ins and then after downloading it the file should open in the browser.
I would be grateful if anyone can help me out. If there is some link or something like that then please let me know.
Thanks in advance.

hi,
you can open non-HTML files in the browser... when the file is sent from the server side you have to set the content type to match the content type of the file you are sending..
for example, if you are sending a pdf file.. you have to set the content type as : application/pdf
Another example: If you are sending a word doc use: application/msword
-- Abdel Raoof Olakara
http://olakara.googlepages.com

Similar Messages

  • Reg key to set PDF opening in Reader and not the web browser

    Is there a reg key which would apply to all users/computer (not just current user, Hkey_user) to set a variable that would open PDF's in the actual Adobe Reader program and not in a web browser.
    I only find references to reg key's that apply to the current users logged in, but unfortunately I work in an education facility and we use Dynamic user id's which creates a new user each time in windows, and then removes the profile on logout
    Thanks in advance,

    Would you suggest downloading the Adobe Customization Wizard and creating an MST file to distribute the app?  If so, do you have documentation on where to change this setting?

  • How to open a pdf file in a web browser using jsp

    Hi,
    I have a problem opening pdf file in browser using jsp.the following is my code.Can anyone help me.Thanks
    response.setContentType("application/pdf");
    String filename="C:\\FictPos\\mypdf.pdf";
    File file = new File(filename);
    FileInputStream in = new FileInputStream(file);
    OutputStream out1=response.getOutputStream();
    byte[] buf = new byte[4096];
    int count = 0;
    while ((count = in.read(buf)) >= 0)
    out1.write(buf, 0, count);
    in.close();
    out1.close();
    }

    Don't know the problem specifically, but here are some suggestions to investigate:
    Does it show anything in the page when you view source on it?
    I would recommend using a servlet rather than a JSP page for this, if only for the fact the JSPs can insert carriage returns into places where you might not want them to. This might screw up the PDF file format?
    Try setting the a link to the jsp, right-click and "save target as..." just to see if it gets any response at all - ie bypass the browser display.
    Good luck,
    evnafets

  • Which web address is the web browser homepage in s...

    Is it nokia's default wap page?
    If not,which web address will be open when you first launch the web browser in S60 smartphone?
    If not, what is nokia's default wap page address in europe?
    I'm a chinese user, I can't browse nokia european wap page in china ,but I'm interesting in it.
    Thanks a lot

    http://ea.mobile.nokia.com/ea

  • How to open a report stored in the CMS with the RDC ?

    Hello,
    With CRXIR2, reports can be stored in the CMS.
    Does anybody knows how to open such a report with the RDC (version 11.5) ?
    I really need to use the RDC because I have to save subreports on HDD
    and it is unavailable with the RAS SDK (neither Java nor .Net).
    Thank you for your help.
    Alain

    Hi Don,
    Thanks for your answer,
    Why saving subreports ?
    - orthogonality reasons... we can import them, why c'ant we do the opposite?
    - consitency reasons... we should be able to do the same as we do with the designer, (why this option is available in the Designer ?)
    Furthermore, the job is already done in Crystal, it should not be so difficult to port it to the RAS.
    - regression reasons... this is something we could do in the past (from Delphi, with the RDC), now the RDC is gone....
    Now I will tell you my personal reason:
    We have huge reports (about 30 subreports), based on huge business views.
    As a result, just loading the report (openClientDocument) takes more than one minute.
    In a production environment the custommers do not want to accept that.
    So:
    - we keep the business views at design time because it's a requirement
    - Once the report designed I try to cut the BusinessViews and replace them by SQL commands
    I suppose you know the RAS to be aware that it can't do that by far.
    I wrote a program to disconnect all the ReportObjects from the BusinessView, it's Ok
    Now I need to remove the BusinessViews from the report and all subreports.
    I can automate CrystalReports for it, but only at the report level...
    This is my particuliar reason for saving subreports.
    Am I the only one to have this request ?
    If you want, of course, I'm ready to help developing those missing things in the RAS.
    I'm serious, tell me if you are interested.
    Thank you again and best regards
    Alain

  • How to open a file created at the server through form/report at client end

    How to open a file created at the server through form/report at client end
    Dear Sir/Madame,
    I am creating a exception report at the server-end using utl file utility. I want to display this report at the client end. A user doesn't have any access to server. Will u please write me the solution and oblige me.
    Thanks
    Rajesh Jain

    One way of doing this is to write a PL/SQL procedure that uses UTL_FILE to read the file and DBMS_OUTPUT to display the contents to the users.
    Cheers, APC

  • How to open a .JAR file on the Z30

    Hi,
    Would anyine know how to open a .JAR file on the Z30?
    I get a message saying "Unable to open" when I click on the .jar file i want to open in my blackberry & install.
    Cheers
    Mario

    JAR files are for older java phones, they dont work on BB10
    maybe you should look into using SNAP to get some apps yoru looking for
    http://supportforums.blackberry.com/t5/Downloaded-Applications-for/You-Upgraded-to-OS-10-2-1-and-wan...
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Hi I would like to know, how do I add a Hyperlink on Flash, that opens a PDF in adobe reader and not the web browser.

    Hi I would like to know, how do I add a Hyperlink on Flash, that opens a PDF in adobe reader and not the web browser.

    Yoh, what is FSCCommanr ? sorry man I am an absolute beginner in Flash. I tried the code:
    /* Click to Go to Web Page
    Clicking on the specified symbol instance loads the URL in a new browser window.
    Instructions:
    1. Replace http://www.adobe.com with the desired URL address.
       Keep the quotation marks ("").
    instance_name_here.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
    function fl_ClickToGoToWebPage(event:MouseEvent):void {
      navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
    this is the same code I used before and it opens a pdf file in a web browser, and it doesn't open an AutoCAD file.

  • Safari 7.1 opens direct image links centered in the web browser. I need it to open them left aligned like before the 7.1 update. How do I do make it do that?

    This is a major issue. I need the browser to open images left aligned like it did before this update. This is a major break to force this on people. There should be a option to click. "Check this box to open images centered in the web browser" and "Check this box to open images left aligned'.
    Not that hard to do. Now I am forced to resorting to asking how I can force my browser to go back to how it worked before the update.

    Anyone have any idea how to force Safari to work like I want it to?

  • How do I get a link within a PDF to open a new tab in a web browser?

    How do I get a link within a PDF to open a new tab in a web browser? Previous forums (for earlier versions of InDesign and Acrobat) mention something about JavaScript, but I'm using InDesign CC and Adobe Acrobat Pro CC
    Thanks.

    When you're looking at the PDF that's on your site, is it opened in the browser or directly i Acrobat/Reader? If in the borwser, do you know if it's being viewed in the browser's default PDF viewer or Acrobat/Reader? It probably won't work in non-Adobe PDF viewers.
    Are you saying that when you click the link that two new browser tabs are opened with the same URL, instead of just one as you'd expect, or something else?

  • Opening an external URL from the Web UI

    Hello,
    I want to use the Web UI in order to open an external URL.
    I know it can be done easily using JavaScript, but the URL is generated from one of the page controller methods, and I want to open it directly from there.
    I know that there's the Window Manager in the Component Controller, that can open popup windows, but none of it's methods receive an external URL.
    So how can I open an external URL from the Web UI methods?
    Thanks,
    Udi.

    Hi,
    you can use the Trnsaction launcher with OP.
    in the window you create an OP_X
    with the code
      data: lv_navigation type ref to     if_crm_ui_navigation_service.
      lv_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
      lv_navigation->navigate( iv_link_id = 'ZTO_X' ). "runtime you create the TO_X nevigation"
    in your implamentation class of the view you add a preotected method OP_TO_X with the code
       data:
        lr_window type ref to cl_bsp_wd_window.
      lr_window = me->view_manager->get_window_controller( ).
      lr_window->call_outbound_plug( iv_outbound_plug = 'TO_X'
                                     iv_data_collection = iv_data_collection ).
    and you call to that method from the EVENT_HANDLER you want.
    Amit.

  • How do I download an MP3 from the web to iTunes

    I received an email with a link to an MP3 I'd like to load onto iTunes so I can listen to it on my iPod.  But when I click on the link, it opens Safari, and the only thing on the screen is a progress bar with a start/stop and a volume control.  I can't find anything to click on to drag it to iTunes. 
    I've tried 'File->save as' and put it on my downloads folder or on the desktop.  But it won't save as an MP3, it tells me it has to put '.webarchive' as an extension.  If I try to drag the file to iTunes, nothing happens.  If I double click on it, I get the same Safari window.
    So how do I get this MP3 off the web and into iTunes?

    When it's playing in Safari, click on its URL in the address bar and press the Option and Enter keys.
    (63973)

  • How can i add an administrator access so the admin can edit his webpage on the web browser?

    How can i add an administrator access so the admin can edit his webpage on the web browser?

    A content management system or CMS is software usually on the server that allows client's to log-in and edit content from any web browser with an internet connection.  These web pages are typically built with server-side programming (PHP) and databases (MySql). 
    CMSs come big and small.  The right one for your project depends on
         a) your programming skills,
         b) project requirements,
         c) budget.
    COMMERCIAL CMSs:
    Cushy CMS (watch the video to see how it works)
    No PHP or databases required.  Editing is performed on their web site.
    http://www.cushycms.com
    Perch ($59 license per site)
    PHP & MySql required
    http://grabaperch.com/
    WebAssist Power CMS Builder - Extension for DW
    PHP & MySql required
    http://www.webassist.com/dreamweaver-extensions/powercms-builder/
    Adobe Business Catalyst (full subscription includes CMS & web hosting)
    http://www.businesscatalyst.com/
    OPEN SOURCE CMSs:
    Get Simple CMS
    PHP & XML required.
    http://get-simple.info/
    e107 CMS
    PHP & MySql required
    http://e107.org/
    WordPress
    PHP & MySql required
    http://wordpress.org
    Joomla!
    PHP & MySql required
    http://joomla.com
    Drupal
    PHP & MySql required
    http://drupal.com
    Concrete 5
    PHP & MySql required
    http://www.concrete5.org/
    Nancy O.

  • With OSX10.7.5 and Adobe Reader 11.0.02 when I try to open a PDF downloaded from the web I get 'There was an error opening this document. This file is damaged and could not be repaired. Preview will not open either. Older PDFs OK.

    I am running OS X 10.7.5 and Adobe Reader 11.0.02. In the last few days I have been unable to open PDF's downloaded from the web. Reader gives the error message 'There was an error opening this document. The file is damaged and could not be repaired'. Removing Reader and trying to use Preview to open these files give the error 'Preview cannot open this file. It may be damaged or use a file format that Preview doesn't recognise' (or something like that). Downloading the same files with Reader removed from my Mac Preview opens the files OK.
    I was recently prompted to update Adobe software but did not note exactly what the update was nor when it was done.
    Reader and Preview will both open PDFs I downloaded a week ago. Reader will also open files downloaded on another Mac running OS X 10.0.0 and copied to my Mac. Any ideas?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • How do I get the Adobe toolbar to display above a pdf in the web browser?

    Hi guys,
    I'm just having trouble with locating the grey toolbar, it's not displaying when I open a .pdf in a web browser.
    I can open the .pdf fine, (within Safari), and usually (on my old computer) there was a grey toolbar above the .pdf & there's a print icon on it - that's what I'm looking for, so that I can print my lecture notes straight away.
    The toolbar won't display on the web browser above the .pdf, but if I save the .pdf & open it with Adobe Reader, then the toolbar displays there with all of the icons etc.
    So I was wanting to know if instead of saving them every time, if there's an option to get the toolbar displaying above .pdfs in Safari?
    Has anyone else encountered this problem?
    Any help would be greatly appreciated.

    Unfortunately, iOS does not provide a way to install "plugins" to Safari so there is no possible way the Reader can do this. You can use the "open in" functionality to launch Reader from Safari.

Maybe you are looking for

  • Safari quits unexpectedly everytime I try to open it

    everytime I try to open Safari i get the following error... please help... Process: Safari [149] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 4.0.4 (6531.21.10) Build Info: WebBrowser-65312110~2 Code Type

  • Photoshop Elements 6.0 - Best How to manuals

    Hi, Anyone make a recommendation for a MAC user as to which PS E 6.0 book is best for learning? I had assumed PhotoShop for Dummies, but wanted something that might have had a MAC flair to it instead of Windows. Looking for good reference book Lou

  • Archlinux setup on Toshiba r100

    Hi guys, I have a problem, i would install arch on a toshiba r100 (subnotebook) but i have no cd rom on this laptop so i would use a usb pendrive to install it. The problem is that i couldn't create a bootable image on my usb pendrive, i tried with s

  • Fund center field blank when trying to post an invoice related to an old PO

    Hi everyone, I have implemented PSM - BCS on a company that was already using SAP and now I have encountered the following issue: I`m trying to post an invoice (using transaction MIRO) related to an old PO that already had the goods receipt posted be

  • Flash films on iWeb pages

    I want to host 6 flash films (approx 3 min each) encoded with Adobe Flash CS3 Video Encoder on iweb pages that would be linked from my external web hosting company. The main page being hosted with the external company. I have 30gb of space in my iDis