Downloading website pdf files problem

When I try to download a pdf file from a website, Internet Explorer stops working.  This happens on 4 websites that I've tried.

Not sure what is causing this; I have no problems opening PDFs in IE11.
One thing to try: http://support.microsoft.com/kb/2716529

Similar Messages

  • Problem with downloading a PDF file from a webserver run on Linux

    Hi,
    I've written a simple functionality that manages file attachments.
    Everything works fine (attaching, downloading, deleting) when the webserver runs on Windows.
    However when I deployed the code to the Resin webserver run on Linux and use the Win browser to connect to the app, the downloading of PDF file doesn't work (uploading and downloading of txt, doc, xls, jpg files is OK).
    The downloaded PDF file is almost twice as big as original (~28KB when original is ~12KB) and it can't be open.
    I guess it is the problem of writing to the output stream of HttpServletResponse but I can't localize the problem.
    Here is the code I use for downloading file:
    private boolean downloadFile(HttpServletResponse response, String filePath,
                   String originalFilename) {
         File file = new File(filePath);
         String contentType = URLConnection
                   .guessContentTypeFromName(originalFilename);
         // If the content type is unknown set the default value.
         if (contentType == null) {
              contentType = "application/octet-stream";
         BufferedInputStream input = null;
         BufferedOutputStream output = null;
         try {
              input = new BufferedInputStream(new FileInputStream(file));
              int contentLength = input.available();
              response.reset();
              response.setContentLength(contentLength);
              response.setContentType(contentType);
              response.setHeader("Content-disposition", "attachment; 
                           filename=\""+ originalFilename + "\"");
                output = new BufferedOutputStream(response.getOutputStream());
              int bufSize = 10000;
              byte[] buf = new byte[bufSize];
              int bytesNo = 0;               
              while ((bytesNo = input.read(buf, 0, bufSize)) != -1) {
                   output.write(buf, 0, bytesNo);
              output.flush();
              input.close();
              output.close();
         } catch (IOException e) {
              log.debug(e.getMessage());
              e.printStackTrace();
    }Can you point any problem?
    Thanks in advance,
    Ala

    matali wrote:
              int bufSize = 10000;
              byte[] buf = new byte[bufSize];
              int bytesNo = 0;               
              while ((bytesNo = input.read(buf, 0, bufSize)) != -1) {
                   output.write(buf, 0, bytesNo);
    This piece is completely wrong and doesn't work for files bigger than 10000 bytes. Replace it by
    byte[] buffer = new byte[10240]; // 10KB exactly.
    int length = 0;
    while ((length = input.read(buffer)) > 0) { // Read next 10KB of input to buffer.
        output.write(buffer, 0, length); // Write specified length of buffer to output.
    }Or just use output.write(input.read()) in a loop of the contentLength as you're alredy using BufferedInputStream/BufferedOutputStream.
    Another thing, the method is declared to return a boolean, but it actually doesn't? I would just let it throw an exception in case of failure instead of returning a boolean and let the calling method handle the exception.

  • How do I upgrade Adobe reader - currentlyevery time I try to download a PDf file on my macpro I get a grey screen  and a dialog box that says adobe reader is blocked for this website...

    Help - a couple of weeks ago I tried up upgrade adobe reader but it never completed loading as far as I can find / that night would never finish
    ( how would I know , where would I check?)
    now every time I need to download a PDF file ( dental claim forms tonight) I get a grey screen with a dialog box that says Adobe reader blocked for this site
    and that happens on any site where I am trying to download a PDF…?

    What is your operating system?  Reader version?  Downloading from what browser?

  • Unable to download a pdf file. received message-problem with program with acrobat reader-103-103

    unable to download a pdf file using acrobat reader X. received message-there is a proble with program with acrobat reader 103-103.

    Download the file with your web browser (Safari, Firefox, Chrome). Then attempt to open the PDF file in Reader or Acrobat.
    It may not be a real PDF file, or it may be damaged.

  • Often I cannot download a pdf file. I get a blank window. I do not havethis problem with Safari.

    On many sites I cannot open or download a pdf file. A new window opens, but it is blank. I have no trouble downloading from the same site using Safari.

    Hi anilkagda,
    Acrobat passwords are case-sensitive, so please be sure that you're entering it exactly as it was provided. If you are, you may have been given the wrong password. Your best bet would to be to go back to the person who supplied the file and ask them to verify the password.
    Good luck!
    Best,
    Sara

  • How do I continue to be able to download Adobe pdf files with FF4.0 as I was able to with all previous version?

    With FF 4.0 I can no longer download Adobe pdf files. At any website when I click the pdf icon something is displayed about a plugin-handler and nothing further happens - there is either no download or the download stops. Sometimes a partial frame of the pdf frame displays but nothing further happens. I never had this problem with previous versions of FF.

    You must be doing something wrong, or perhaps Windows 7 is interfering. Here's the step-by-step process:
    Launch LabVIEW 2009.
    Open an 8.6 VI. It should show up with an asterisk in the title bar.
    Make some changes.
    Select File -> Save for Previous Version.
    Verify that "8.6" is selected in the dropdown.
    Click "Save...".
    In the dialog click the "Save" button to accept the default of saving the VI into a new folder called "<VI Name> Folder".
    Close the VI. When asked if you want to save changes click "Don't Save".
    Check the timestamp on the newly created file in that folder.
    Open the same 8.6 VI again.
    Make some changes. 
    Select File -> Save for Previous Version.
    Verify that "8.6" is selected in the dropdown.
    Click "Save...".
    The "File name" textbox should have the same default name as previously. If you click "Save" Windows should move you into that folder, and the save dialog should remain open. The file listing should contain the VI.
    Click on the "Current Folder" button. You should get a dialog warning you that the operation will save over existing files. Click "OK" to continue. The VI will be saved as the previous version over the previous save that was done. To verify this, check the timestamp on the file.
    I just did the above on LV2009 running under XP just so I could get the button names correct.
    You can repeat steps 10-16 as many times as you want without needing to create a new folder.

  • Download of pdf file fails

    When I try to download a pdf file from a website to read, it downloads a few kb of the file and then freezes.  Is this an Adobe problem or an Internet Explorer problem?

    Looks like an issue with your connection. Could you please let me know the following:
    1. The OS and the version of Adobe Reader on your system.
    2. The browser being used.
    Just to be sure whether or not its an issue with Reader, can you try and do the following:
    1. Open the page: http://helpx.adobe.com/acrobat/kb/update-patch-acrobat-reader-10.html
    2. Right click on the hyperlink "10.0" under the "Vers." column in the "Windows update file information" table.
    3. Click on "Save Link As" or likewise and provide a location to save the PDF.
    Does this work?

  • Safari 3 quits as soon as I download a .pdf file

    I've just downloaded the Beta of Safari 3, running on my 12" Powerbook (10.4.10, 1.25Gb RAM, 1.5GHz processor). Now, whenever I try to download a .pdf file from any site, the browser crashes without warning or error message.
    Three questions:
    1. Anyone else having the same problem?
    2. Anyone got an answer to it?
    and, assuming the answer to (2) is 'no',
    3. How do I re-install the latest version of Safari before the Beta 3?
    Thanks,
    Mark

    Right - apologies for posting the wrong forum for a start... Should have looked around and spotted the Beta forum.
    Secondly, problem now solved:
    Moved the "AdobePDFViewer.plugin" from HD>Library>Internet PlugIns to
    HD>Library>Internet PlugIns>Disabled PlugIns

  • Safari 4.0.3 crashes when downloading a .PDF file

    Whenever we try to download a .PDf file, Safari crashes with this error. "The application Safari quit unexpectedly. The problem may have been caused by the Acrobat Plug-in."
    Any suggestions would be welcome.
    Brian Bowell
    Berkley Normal Middle School.
    New Zealand.

    Greetings,
    Are you trying to download a PDF file, or open one in Safari? There's a difference, so you need to be clear as to what you're really doing.
    For the sake of argument, I'll assume you're trying to open a PDF file in Safari. In that case, the problem is the Acrobat Reader and it's plugin. You don't need either one, because Safari is perfectly capable of rendering PDF files all by itself, and faster than Adobe Reader.
    You should use something like AppDelete to remove Adobe Reader and it's plugin entirely, then restart Safari and try opening a PDF file. You should have no problem.

  • Can't download a PDF file.

    I'm trying to download a PDF file from a financial institution, but all I get is the typical box with the never ending flying file. Nothing else happens. I'm using win xp and explorer. I disabled all security programs but that did not solve the problem. I just don't know what else to try.

    Most likely the server on that institution is slow or overloaded. Try again, or post the download link here.

  • Reader 11.0.2 does not automatically launch upon download of .pdf file

    My OS is Windows 7, my browser is Firefox 19.0.2.  It used to be that when I downloaded a .pdf file, Adobe Reader would launch automatically and display the text, ready to read.  Now the Reader no longer launches automatically; I have to go to the Tools > Downloads list and double-click on the desired file before the Reader will open it.  I can't recall if this problem started when I upgraded the Reader to 11.0.2.  I've uninstalled, rebooted, reinstalled and rebooted again - no luck.  Can anyone advise?  Thanks.

    Hi,
    You can control how Firefox handles each type of file by going into Firefox > Preferences > Applications.
    Please find Portable Document Format from the list and select Adobe Reader as an application.
    Please check the screenshot:
    Let me know if this helps you.
    ~ Aditya

  • Downloading a pdf file from javascript() window does not work

    PDF download/view works fine where the link points to actual pdf file. But I have problem downloading/viewing pdf files that are loaded using javascript(), e.g. bank statements and such. When I click a link FF downloads a file which either has no extension or has a different one (not .pdf).
    Later I realized that I can manually rename the downloaded file to insert .pdf extension and open it in reader.
    How can I solve this? I don't have this problem when using IE or Chrome.
    Thanks

    Could you try a new profile?
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem.
    http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    If it still happens with a new and clean profile then the most likely cause is that you have security software that is blocking this JavaScript.

  • How do I get Firefox from "saving" to Downloads EVERY PDF file I open ??

    Greetings,
    New to Firefox. Running Mac Leopard and needed Firefox because a business website running a business replay podcast did not recognize Safari.
    So far so good. I actually prefer Firefox to Safari now.
    One little thing. Every time I browse the web and open a PDF file it "automatically" sends it to my download file and I therefore have the file "saved" . WELL, I don't necessarily want to save to my download file every PDF file that I open. I just want to open a PDF file, do a quick read and move on to more browsing. How do I stop Firefox from saving to my downloads every PDF file that I open? Is there some kind of setting I can adjust?
    Thanks.

    Lexonex wrote:
    You da man...I've never done an "Ad-On". I downloaded the recommended "Ad-On" as you suggested. The program fixed my issue...NOW, I can simply open a PDF file without it automatically going to my downloads.
    THANKS
    If you ever need to download a list of things, firefox can select a vertical column using the Cmd key, unlike Safari.
    I have DownLoadThemAll installed and I can select a vertical group of files, right-click them and using DLTA, I can DL them to any location. With Safari, I would have to do this one-at-a-time.
    Just another reason I like FF for many purposes.

  • When downloading a pdf file I get a message that I must download Adobe Reader. When I do that I am told that it is already installed. Why can't I use it if it's already installed. I-Mac OsX 9.3

    When downloading a pdf file I get a message that I must download Adobe Reader. When I do that I am told that it is already installed. Why can't I use it if it's already installed. I-Mac OsX 9.3

    g -
    I was able to fix the problem with some help from Apple. Whenever I last downloaded Reader, I apparently didn’t complete the process by accepting the Reader contract. I was able to go right to that point in the process and complete the installation. The messages that I needed Reader but it was already installed were quite confusing. It would have been nice if the Adobe installation process that I was re-trying this morning had been able to detect a partial installation. The Troubleshooting page almost had me doing some ridiculous things that wouldn’t have helped.
    MP

  • Download to PDF File

    Hi all,
    I want to download .pdf file (just like we download eg. .txt file using FM 'GUI_DOWNLOAD', I have to download a .pdf file). I tried with the same FM, but whenever I am trying to  open the file, it's giving error. Anybody any idea? Is it possible to download to .pdf simply using  GUI_DOWNLOAD?
    If yes, any special parameter needs to be passed?
    Thanks
    Sandip

    First you need to mark your post as a question.  There should be something on your screen that says,  "Mark as a Question".   Check this box.  This will turn on the points system for your post.  You can give points according to how helpful the answers are.  And you can give 10 points for answer that solved your problem.  Doing this "closes" the thread. 
    Please see this as it will explain further.
    https://www.sdn.sap.com/irj/sdn/collaborationareas/collaborationfaq
    Thanks and Welcome to SDN!
    Regards,
    RIch Heilman

Maybe you are looking for

  • How to place the PO no in VL10B

    Hi All, when i click on the PO number from  ALV display, thecall transation will direct to VL10B. my requiremnt is to place the PO number in VL10B which is there in the second tab automatically. please help me out to achieve this. thanks in advance s

  • XSLT extension method in bpel

    Can someone please tell me how to extend the existing xslt file. I have a scenario where in customer will add new fields(as a ADF flex fields) and that will be taken(appended) in an xml file(will be added in EO and exposed as a service to BPEL). Now

  • Getting started tab won't show info..it's all purple and my page doesn't look like the illustrations

    When I clicked on the getting started tab, the page illustrated does not look like the page I am currently getting. When I tried to click or roll over the various tabs, all I get is a purple box with no information. So far, I have found this site ver

  • Ant or what tool to compile Java Classes

    For the past year I have been using Windows command window to compile Java Classes for my Servlets, Java Beans and Helper classes. I use Cold Fusion studio as my IDE for creating the Java classes. All of my Web Applications use MVC for Forms feeding

  • J2EE Business Application Development Guide

    Dear Sir, I am looking for a suitable book which can explain complete approach and methodology for developing an Enterprise "Business Application (preferably either from Manufacturing or Banking sector)" using J2EE . The book should explain complete