Opening pdf file in a  browser window.

I have a requirement to open a pdf file in a new browser window after onClick of a link. It is not the url of the pdf file. Actually the pdf file is generated dynamically by reading a blob column from the database and converting into a byte array and writing it to the outputstream. This is the code
Currently on click of the link we are opening a jsp file which has the following code. We have put target=_blank in the link.
String fileName = "DownLoadFile.pdf";
response.setContentType("application/pdf");
response.setHeader("Content-Disposition", "inline;filename=\""+ fileName + "\"");
response.setContentLength(retrieveDocumentValue.getDocumentObj().length);
try{
ServletOutputStream out1 = response.getOutputStream();
out1.write(retrieveDocumentValue.getDocumentObj());
out.close();
} catch (IOException e) {
out.println("IO Exception");
e.printStackTrace();
}The problem is that,It is opening two window, one is an blank browser window and other pdf file in the Acrobat reader application? How can we open the file directly in the browser only without opening the Acrobat reader application externally?
Edited by: thisisananth on Sep 17, 2008 11:13 PM

We are facing this problem with IE6 browser only. In firefox, it opens fine in a browser window. What configuration should we do in IE6?
Thanks,
Ananth.

Similar Messages

  • Can't open pdf files in Safari browser windows (bank website window) after I installed Adobe Reader 11update on my Mac last night

    I previously had Adobe Reader 9, which worked perfectly.

    Here's EXACTLY what happens:  I am in a Safari browser website and try to open a pdf file (my bank statement).  When I click on the link I get this message in a black window: "Adobe Reader.  Before viewing a PDF file in this browser you must launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser."  So I launch Adobe Reader but there is no End User License Agreement to accept.  I have done this several times with no result.  I am using a MacBook Air with OS 10.9.4 and Safari 7.0.5.

  • I can't open a pdf file in a browser window. I have to save it before I can open it. Why can't I open the file without first having to save it?

    Anytime that I click on a pdf file in a browser window, the file will not open automatically. I am forced to save it on my computer first and then access the file. When I click on it after it is saved locally, it opens as it should.

    If you are not able to get Adobe Acrobat Reader to open .pdf files in the browser. Even after you check in prefs to show pdf files in the browser.
    Make this modification for all versions of Adobe Acrobat Reader that show under this key.
    -Note: Deleting the key and all subkeys for any older versions also seems to fix this problem. So if you see this key present,
    HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\7.0\Originals
    delete the 7.0 and all subkeys.
    HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\Originals
    -Right click on Originals and choose NEW DWORD Value and name it bBrowserIntegration, hit enter,
    double click on the new value and make sure the value is 1

  • Can't open PDF files in the browser. I've tried every fix mentioned and it still doesn't work!!!

    I have Windows XP. Using firefox as my browser. Suddenly, I can't open PDF files in the browser. I've tried all the fixes mentioned. Nothing works!!! Checked the plugin settings, checked Adobe Reader settings.

    I already fixed it. I never exited out of Firefox before deleting the mime file. it works now.

  • What can I do to rectify the situation in which Firefox will not open pdf files in the browser, even though I have already used all the help suggestions to no avail?

    I have tried everything Mozilla has suggested. Still when I click on a pdf, I get the message that the browser cannot open a pdf. I have gone through the help protocol, and it does not work.
    I have uninstalled Firefox and reinstalled it, and still not able to open pdf files within the browser.
    What else do I do, except go to IE or Chrome and just leave Firefox completely???

    A possible cause is the presence of a PDF plugin from an older Adobe Reader plugin in the plugins folder in the Firefox program folder.
    See [[Troubleshooting plugins]]
    See also:<br />
    http://kb2.adobe.com/cps/405/kb405461.html - The Adobe Acrobat/Reader cannot be used to view PDF files in a browser<br />
    http://kb2.adobe.com/cps/836/cpsid_83688.html - I can’t view a PDF document in my web browser<br />

  • How we can open pdf files in epic browser in English

    how we can open pdf files in epic browser in English
    message is appearing in epic browser during opening pdf files in browser " The adobreader /acrobat reader is running cannot be used to view pdf files , please exit and try again "

    I already fixed it. I never exited out of Firefox before deleting the mime file. it works now.

  • Issue with opening pdf file from web browser

    I have Acrobat Pro ver 6 and Adobe Reader 9.1 on a computer.  when my user tries to open up a pdf from the web he is getting the following error message:
    "The Adobe Acrobat/Reader that is running can not be used to view PDF files in a WEb Browser.  Adbe Acrobat/Reader version 8 or 9 is required.  Please exit and try again."
    What also happens is that Acrobat Pro ver 6 opens up and nothing is there.
    I am not sure why he is getting that message since Reader 9.1 is installed.
    Can any one shed some light on this for me.
    This user needs to have Acrobat and Reader on his system.  I understand that there are issues with having both.
    Also he has it set up so that any PDF is opening using the Reader 9.1.
    Thanks,

    Your PC's default reader configuration for embedded PDFs has become confused, due to multiple Adobe PDF document solutions installed on one PC.
    Solution 1:
    Go to Start > Run
    Type regedit and click OK.
    Browse to the following key: HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe
    Make sure that the correct Default data value is set for the path where Adobe Reader or Acrobat are installed.
    The default installation values are:
    "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe"
    or
    "C:\Program Files\adobe\acrobat 6.0\acrobat\Acrobat.exe" (not sure about this path.  Check on your PC to be sure)
    depending on whether Adobe Reader or Adobe Acrobat is installed.
    Solution 2:
    Configure the browser to use Acrobat or Adobe Reader as a helper application.
    If you are using Firefox to browse the web, you can change this setting in Firefox by going to:
    Tools > Options
    Click on the "Applications" Tab.
    The first item in the list should be "Adobe Acrobat Document".  Under the Action list, click the drop down arrow and select the application you want to read PDFs within the web browser.  Click OK, and you should be done.
    If you're using Internet Explorer to view PDFs, try the below steps.
    After you configure Acrobat or Adobe Reader as a helper application, the browser starts the helper application in a separate window and displays PDF files within that window. Acrobat and Adobe Reader both include a preference that lets you specify Acrobat or Adobe Reader as the helper application.
    To configure Acrobat or Adobe Reader as a helper application:
    Start Acrobat or Adobe Reader.
    Choose Edit > Preferences.
    Select Internet on the left.
    Deselect Display PDF In Browser Using [Acrobat application], and then click OK.
    Quit Acrobat or Adobe Reader.
    The next time you select a link to a PDF file in the browser, a dialog box asks what you would like to do with the file. If you select Open It, the browser opens the PDF file in Acrobat or Adobe Reader (the helper application); if you select Save It To Disk, the browser saves the PDF file to your hard drive.

  • How can I open pdf files in safari browser without installing Adobe reader?

    I do not wish to use adobe reader. I just uninstalled it and now I can't view pdf files in preview when attempting to open the file in safari browser.  How can set safari to open any pdf files using preview application?

    Copy the text below, including the initial /
    /Library/Internet Plug-Ins
    Switch to Finder, then use the Go menu - Go to Folder command & paste in the text, clicking Go afterwards.
    A Finder window should open, showing various plug-in files. Trash any that are for Adobe or PDF. You'll be asked for an admin name & password.

  • Adobe Reader 8.1.1 won't open PDF files from IE7 Browser

    We are using Windows XP SP2 on our network and have recently installed Adobe Reader 8.1.1 and IE7. However this has thrown up a large amount of problems as now any link, for example 'http://somesite.co.uk/somepdf.pdf' will not open a pdf file, just a blank browser page! Does anyone have any ideas as to how to fix it, or have come across this also?
    Thanks in advance,
    Marcus Arnold

    A .txt can not be opened in Reader.
    Reader opens .PDF files.

  • Adobe Acrobat 9 installed but cannot read any PDF file from a Browser window

    I have a new(-ish) PC running Vista and had Adobe Acrobat v9 installed.  However I cannot open PDF files when trying to view from a Browser on a web site.  IE8, Firefox and Chrome all produce the same error that claims I need to install Adobe 8 or 9.  Have searched "Manage add-ons" and found Adobe enabled.  Have hunted around but cannot seem to find a way to fix this.  Any ideas?  This seems so fundamental that it is difficult to believe that (a) it happened in the first place and (b) that there is not an obvious way to fix it!

    Are you on a PC with a profile setup?
    Assuming you are,
    Rename your profile to something like PROFILE.OLD and then relog into the PC.  If the PDF's open without issue, you can remove the Abode folders in the old profile under Documents and Settings\%profile%\Application Data and Local Settings\Application Data.
    Rename the new profile to yet something else like PROFILE.NEWOLD.   Then rename your PROFILE.OLD to its original name.  Confirm that you have removed the above folders from this existing profile.   Perform MIGWIZ I.E. Export files and settings to a folder. Now rename the profiles so that the .NEWOLD is the active profile and run migwiz there - bringing in your old settings.  These steps are only needed if you wish to preserve all the data and settings from your old profile.
    Hope this helps!

  • Parameters for opening PDF files in a browser

    I read some of the posts about making a text link from an html page to a specific location in a pdf document in the browser.  I set up the parameters, as I understand it, according to the document "Parameters for Opening PDF Files." The result from my test took me to the top of page 1, not to the bookmark on page 3 that I specified. See the link below. What is wrong with the parameters?
    http://www.tabardtheatre.org/YPASCfolder/2012/SummerYouthProgram2012.pdff#page=3&bookmark= anniejr
    You can also go to the website: http://www.tabardtheatre.org/audition.html and click on the text link (in blue).

    The PDF Open Parameters do not contain the option to link directly to a bookmark, as was mentioned, but I've developed a script that can add this functionality to your files. Have a look here, if you're interested: http://try67.blogspot.com/2011/06/acrobat-link-to-specific-bookmark-in.html

  • Can't open pdf files in Safari for Windows

    Hi, I haven't been able to open pdf files in Safari - each time I click on a pdf link, a new tab opend and then a pop-up window says "can't open Adobe" (or something like that), and then Safari crashes. I've read that the solution is to install Adobe Reader 8, but I can't because I already have Adobe Acrobat which doesn't seem to work with safari. Does anyone know a way to view pdf files in Safari for windows?

    Try to uninstall and after that install Acrobat Reader 8 again.

  • I cannot open pdf files in my browser

    Adobe Reader 10.1.1 will not open pdf files from the web.  Operating system:  Mac OS X 10.6.6.  No problem with previously downloaded files.

    Hi Vikram,
    I have this trouble in Firefox, and Safari, and Chrome. I can no longer open .pdf documennts on line in any browser configuration.
    I have tried serveral browser versions and serveral Reader versions, same result. Running Mac OS 10.6.8, just after a full rebuild and this is the most annoying result.
    I do have the above suggestion checked, which I believe is the default setting, as I was always able to use a single cilck to open all .pdf files. Noticed this first with download of most current Reader. Currently have 9.5.2.
    It began when I installed most current version after the rebuild of the OS.
    Any help would be gratefully appeciated.
    Thanks,
    Jay

  • I can't open pdf files.  The popup window says to install adobe but when I download adobe it says I already have it

    I can't open pdf files. 

    Back up all data.
    If Adobe Reader or Acrobat is installed, there should be a setting in its preferences such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected. Otherwise do as follows.
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination 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, move to the Trash any items that have "Adobe" or “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. The same goes for a plugin called "iGetter," and perhaps others — I don't have a complete list.
    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 Firefox to use the Adobe Acrobat 9.0 Standard plugin to open PDF docs in the browser window?

    I have Acrobat 9.0 Standard installed on my laptop and I've followed the guides provided by Adobe and Firefox for using the provided Adobe plugin file with Firefox so that I can view PDF documents in the Firefox browser window, but neither one has worked for me. I have the location of the Nppdf32.dll file (C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Browser) and Acrobat is configured to "Display PDF in browser", but whenever I open a pdf on a website, my options are still only to either open it externally with Acrobat or save it. What do I do?

    Your response identifies the issue exactly! My website is hosted by GoDaddy. I have forwarded your linked information to their tech department. The URL below my signature is the site having the problem I've outlined when attempting to access linked images.
    Thank you
    Vincent G. Flaherty, Principal
    Hamilton 1:1 Communications, LLC
    410 Fern Road
    Orwigsburg, PA 17961-9210
    Tel: (267) 261-8693
    Designed for Submarines:
    http://www.designed4submariners.com

Maybe you are looking for

  • Ipod touch 5th generation overheating and now sound is not working properly

    Got an ipod touch 5th gen a few days ago and it has been working well for the first few days, then last night it came up with an 'overheat' message and turned itself off.  I was surprised as it wasn't working particularly hard when it overheated, jus

  • Plug-in versions

    Hi, I need some help. Different Java plug-in versions make a real mess. I have an applet and if I want that applet to work under 1.3, I put version 1,3,0,0. Let's complicate the task. What about 1.3.1-03, 1.3.1_04? How about these 1.3.1_02-b02, 1.3.1

  • Sound Blaster X=Fi SB1090

    My audio port on my mac recently stopped working so I decided to buy a usb sound card. The sound card works but I only have 2 channel audio and it says "this device has no output controls". This means I can not use the volume keys on my keyboard nor

  • How can i sort F4  by the data in the parameter  ?

    i create parameter "p_budat" . now i wont to display in the F4  just relevant data for  the user date . for example if the user enter "13.03.2006" , just relevant data for this date will show up  . the problem is  , when i going to the  : AT SELECTIO

  • PROBLEMS WITH CAMERA BB Q5 (PROBLEMI CON FOTOCAMERA BB Q5 )

    The camera doesn't work, the error message is: "tha application doesn't have the autorization to use it" What I have to do?