Opening a rft file from the jsp

hi all,
i want to open an rtf file from the jsp. i need to call a rtf file present in some location and convert the file to bytes thereby writing these bytes to output stream and so.. can anyone suggest me here.
it should be something like this :
String sFileName = "/kli/terms&conditions/TermsandConditionsLitigation.rtf";
              File nameOfFile = new File(sFileName);
              FileOutputStream fout = new FileOutputStream(nameOfFile);
              response.setContentType("application/rtf");
              response.setHeader("Content-disposition","attachment;filename=\"" +sFileName+ "\"");
              ServletOutputStream outs = response.getOutputStream();
              outs.write(fout);
              outs.flush();
              outs.close();satish.
Message was edited by:
bobz
Message was edited by:
bobz

Yes, unlike earlier IE versions, IE10 has only one executable, but it can run in 32-bit or 64-bit mode.
Some details: http://www.sevenforums.com/tutorials/280434-internet-explorer-10-enable-32-bit-64-bit-ie10 -windows-7-a.html

Similar Messages

  • I have design standard with creative cloud, I have installed this on 2 computers, my office and home which I was told was allowed, I have just tried to open an indesign file from the office at home and and error message said that this was created with a n

    I have design standard with creative cloud, I have installed this on 2 computers, my office and home which I was told was allowed, I have just tried to open an indesign file from the office at home and and error message said that this was created with a newer version? they are the same versions and both are up to date, I was asked this morning to put in my adobe id email and password to connect to CC which I have never been asked to do before, can anyone help?

    what's your home version (click help>about) and was that just a warning so you were able to open the file?

  • Every time I open a New File from the File Menu and I open it all of my desktop items are in it. What's up with that?

    Every time I open a New File from the File Menu and I open it all of my desktop items are in it. What's up with that?

    This is configured in Finder preferences under the General icon. You can make some changes to that behavior.

  • Opening a pdf file from the internet.

    Everytime I try to open a pdf file from the internet a window pops up and tells me that my adobe reader has a problem or gives me a blank page.  I have ie 10, adobe reader XI and adobe acrobat 8 pro.  All this is on win 7.  When I installed the acrobat 8 pro it could not find the adobepdf.dll.  I searched the disc, and tried to direct the installation to it but it would not accept it.  What can I do to correct this issue?

    Yes, unlike earlier IE versions, IE10 has only one executable, but it can run in 32-bit or 64-bit mode.
    Some details: http://www.sevenforums.com/tutorials/280434-internet-explorer-10-enable-32-bit-64-bit-ie10 -windows-7-a.html

  • Will I be able to open InDesign CS6 files from the latest CC version?

    Considering Cloud purchase and want to check compatibility. Will I be able to open InDesign CS6 files from the latest CC version? Thanks for any advice on this.

    You can open files in CC from CS6 and earlier.
    Due to updates to the text engines you might notice a text reflow - note that text won't reflow until it's interacted with.

  • Unable to open large PDF file from the Attachment list.

    Hi Gurus,
    Users had attached 10 PDF file in the work order attachment list and his supervisor is trying to open the PDF file from the work order attachment list and he is able to open 9 PDF files without any issue, but 1 PDF file is giving the error message as "Database error for <GET DATA FROM KPRO>" and then select ok, we are getting the below message.
    Window cannot find u201CC/Documents and Settings/b2m/SaoworkDir/5015851 Vendor data sheets B&P 2010 SDown XXX .PDFu2019. Make sure you typed the name correctly, and then try again. To search for a file, click the start button, and then click serch.
    Looks like this particular file is not transferring to the SAP work directory.
    Could you please check and suggest us as to how to fix it.
    Thanks & Regards,
    Srivas

    Hi,
    Thanks for your reply.
    We verified  your OSS notes it's not relevant to us Because our issue is while opening the PDF aatchement it is not transferring to my SAP Work Directory because of that reason we are getting the KPRO error. When I'm opening the other PDF files it's transferring to my SAP Work Directory and it's automatically open without any issue.
    Please check and suggest.
    Thanks,
    Srivas

  • I apparently got stung with the Adobe flash virus.  Now I cannot open any .pdf files from the internet.

    I apparently got stung with the Adobe flash virus and now I cannot open any Adobe .pdf files from the internet.  Fix?

    Go to F_Secure's Flashback Removal Tool web page, download their Flashback trojan detection/removal tool, and follow the instructions you find there.
    Also install the latest java update which also tries to remove these trojans.
    Java for OS X Lion 2012-003
    And only download the adobe flash plugin from the adobe site.
    Update:
    Just because you cannot download pdf may not be an indication of the trojan.  There's been a number of reports about problems like that with pdf's.  Look at the More Like This section on the right side of this page.

  • When I open an html file from the desktop all I see is source code rather than webpage.

    I have tried clearing the cache and reading other questions similar. I have a mac and am opening these files from the desktop, not a server or anything so It's incredibly annoying that firefox wont open them as html files even though that is what they are saved as. Also there is no .txt after them. They are purely .html files.

    Try to delete the mimeTypes.rdf file in the Firefox profile folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions
    Firefox 16.0.2 is the last version that works on an Intel Mac with the OS X 10.5 operating system.
    * https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/16.0.2/mac/
    Another option to consider is to install the last Firefox 10.0.x ESR version as that version is more recent than the Firefox 16.0.2 version.
    * https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/10.0.12esr/

  • Issues opening downloaded docx files from the internet on my mac air...

    I have owned my Mac Air for nearly 1.5 yrs and never had an issue, until yestrday.
    I can download docx files from the internet no problem, but when I go to open them (after they have saved into my downloads folder) a pop-up window with "convert file from" appears? Alas I can not open any downloaded docx files from the internet/email etc! This is making work very difficult.
    Any suggestions would be greatly appreciated!

    that explains a lot, you didnt mention that critical part before.  I upload a lot to FTP sites as well
    originals fine.... but thru the server theyre corrupted, .....that narrows everything down.
    have you contacted sys admin for the server about this?
    see here:
    http://stackoverflow.com/questions/2477564/why-are-docx-files-being-corrupted-wh en-downloading-from-an-asp-net-page

  • Office 2013 can't open word, excel files from the network after upgrade to 8.1

    Hello,
    Recently, I upgraded all PCs from WIN 8 to Win 8.1. After the upgrade I noticed that I can't open any word documents and excel files. Before the upgraded I have no problem opened any files. All PCs have over 500GB free space on hard drive. Other PCs that
    run Win 7 have no problem open them only the one with Win 8.1. This is what I got:
    I right click--> property and there is no unblocked. All files resided on the network server.
    Please help.
    Jimmy

    Hi Jimmy,
    Did you get any error message when you try to open an Excel file/Word document?
    If so, you can post the error message and  event log here.Also ,if you had antivirus software installed, try to disable them to test this issue.
    In addition, what happens if you add the network server location as a trusted location?
    Wind Zhang
    TechNet Community Support

  • Captivate 5 Crashing while opening previously edited file from the same day!

    I have today been working on a simple Captivate 5 file. At the time of crashing it had around 9 slides and a one question quiz as I hadnt done much work on it. Im running Captivate 5 on a Windows XP 32bit machine with 4gb RAM and a capable processor. I tried to open a seperate project alongside the one mentioned in order to take a few slides from it. When doing so Captivate crashed. I tried to re open the original document ignoring the second file and got an error message. Some details are captured below. It wouldnt let me take the full detail for some reason but the file it was reporting on is below as its the version of Captivate im running etc.
    I rebooted my machine and reopened the original file no problem. Again tried to open the second file and the same occured. I then tried another reboot only this time, and ever since, it will no longer open the original file which was fine. I have the files in  my dropbox and used a remote connection to check these files on  my Mac at home. They opened in Captivate 5 there without problem. I managed both files so know that the files are ok. It has to be to do with the installation on  my Windows machine. I have run all of the available updates and had no joy.
    I should point out that Captivate still works for new projects. I can just not open existing ones.
    Can anyone offer any advice on how I may fix this? Its driving me crazy as im up against it with deadlines and this hasnt helped me much today.
    Any advice is greatly appreciated.
    James
    ERROR RECEIVED :-
    AppName: adobecaptivate.exe AppVer: 5.0.3.631 ModName: cptextmodel.dll
    ModVer: 5.0.3.631 Offset: 00048ee9
    C:\DOCUME~1\jg-2513\LOCALS~1\Temp\de64_appcompat.txt

    The first thing that I would do is to look over this FAQ Entry, and then post the details - the more the better. http://forums.adobe.com/thread/961741?tstart=0
    If your Projects are behaving as the OP's were, and the media is in a similar place, be sure to list everything.
    Good luck,
    Hunt

  • How to create a xml file from the jsp page?

    I'm a beginner of the develop xml,my question like this,
    there has a jsp page,some parameters in it,I wanna get the parameters and create a xml file,so,what parser method should I use?
    And how to create a new xml file,when the file haven't exist at first?
    pls give some code,thanks.

    a ggod link for u http://www.theserverside.com/resources/article.jsp?l=JSP-XML2

  • Cannot open image pgm file from the labview support's code

    I use the face data base from http://cbcl.mit.edu/software-datasets/FaceData2.html
    and I want to open the .pgm face image with the instructions by http://digital.ni.com/public.nsf/allkb/897F7AA54F2419CE86257377004EA947
    but now it comes to the error and I don't know why.
    I follow the instructions to get the header for 13bytes first using read the binary.vi
    Then, I read the rest of the data using read the binary.vi
    Then, I reshape the binary data to 2D-array.
    Finally, I convert the array to image and using IMAQ to show.
    I have bring the
    1.error_message
    2.source code
    in the attached files. 
    And the face pmg I have open it with gimp and work correctly.
    The face pmg image file I testing is https://drive.google.com/file/d/0ByMlz1Uisc9ORUIxZzloQkk5UG8/view?usp=sharing
    Attachments:
    PGM_Error.png ‏540 KB
    read_PGM.vi ‏43 KB

    Looks like the biggest issue is that the datatype of the "type" integer going to the seond read from binary was not U8 and so the byte spec didn't match up. 
    Attachments:
    read_PGM-2.vi ‏17 KB

  • Adobe Acrobat opens up every file from the day before, always

    Usually it would do something like this when it crashes to recover but now whenever I open a PDF and have none already opened it will open every single PDF I opened YESTERDAY as if it crashed with them all open. I did not have most of those PDFs open even within the same hour yesterday nor did Adobe crash at any point.
    It will also do this randomly while open with a PDF while using Quite Imposing to create a new PDF. It will just go, Hey! I'm going to open up 60 PDFs to freeze your PC!
    Any suggestions?

    It may depend on the plugin that is loaded into your browser. However, right click on a PDF and select the Open With option and go to the default button to select Acrobat as the default. That might do it.

  • I would like to open an .htm file from the command line using firefox. Firefox responds by trying to open a URL (adding WWW to front of file name)

    firefox is located on unix box and I would like to use it to open report generated. After script creats report I would like to call firefox to read report. "firefox report.htm"

    I have solved this problem. All I needed was to follow firefox with the filename

Maybe you are looking for

  • InFocus LiteShow Manager crippled

    I am using a MacBook Pro in my classroom to project wirelessly. When I installed OS 10.5 and attempted to connect by wifi to projector in my classroom (InFocus X2) using LiteShow Manager, I get a crash every time. Initially the program picks up the d

  • How to export and import Financial Reports between two servers

    Cannot find the Export menu in Studio... Please help.

  • CGPL/IBOM Frameworks

    Hello Folks, Our system is on CRM 7.0. The requirement I have at hand is to display 2 addtional fields 'Status' and 'Tactic' from the Trade Promotions Header on the 'Trade Promotions' assignment block on the Agreements Overview page. UI Component - a

  • Safari quits at lunch......

    hey everyone my safari quits every day bout the same time - any ideas?

  • Use power adaptor or battery

    When to use which (Macbook Pro)?  Use the battery at all times and drain then recharge or just when an outlet is not available?