Problem downloading file in Internet Explorer

Hi, I have a problem with Internet Explorer. I want to click on a link that references a file with .dat extension, then select "Open" option and view the file in Notepad (I have the mapping with .dat files and Notepad). When I click on it, if I select "Save" option, the file is stored in disk correctly. But if I select Open opcion, Notepad opens with an error dialog:
Can't find file C:\Documents and Settings\TANDIL\Configuraci�n local\Archivos temporales de Internet\Content.IE5\LZR539BK\Mensuales.dat
Do you want to create a new file?
I think that IE doesn't copy the file correctly in temp directory ...
In my java class I set the response like this:
     resp.setContentType("binary/octet-stream");
     resp.addHeader("Content-Disposition", "attachment; filename=\"" + lote.getNombreArchivo()+ "\""); //el nombre de estos archivos son del tipo XXXXXXX.dat
     OutputStream out = null;
     try {
          out = resp.getOutputStream();
     } catch (IOException e) {
          e.printStackTrace();
out = new java.io.BufferedOutputStream(out);
     copy(lote.getArchivo().getBinaryStream(), out); // lote.getArchivo().getBinaryStream() : es un array de bytes que se copian en la salida
     out.close();
I set the response in differente ways, but I can't solve the problem ...
resp.setContentType("application/octet-stream");
resp.setContentType("text/plain");
resp.setContentType("aplication/force-download");
Thanks in advance
Regards

Hi,
I think you will get better answers if you post this question in a web related forum. The problem is not related to java but rather to http/html.
Kaj

Similar Messages

  • Why can't I download a pdf file using internet explorer as my browser.I can download pdfs using fire

    Why can't I download a pdf file using internet explorer as my browser. I can download pdfs using firefox.

    Gilad D,
    Thanks for the support.
    I would guess the plugin is enabled since when I use Foxfire as my browser, all pdfs download and are readable. (just doesn’t happen when I use IE as my browser, I get a blank screen with a small “x” in the upper left corner)
    I will try your proposed solution.
    Charlie

  • C:\Program Files (x86)\Internet Explorer\iexplore.exe

    IE continually becomes unresponsive.
    Problem description detailed below,but solution in action centre wont download.
    Can anybody help !
    Thanks  
    Description
    <dir>
    Faulting Application Path: C:\Program Files (x86)\Internet Explorer\iexplore.exe
    </dir>
    Problem signature
    <dir>
    </dir>A problem caused this program to stop interacting with Windows.<dir></dir><dir></dir><dir>
    Problem Event Name: AppHangXProcB1
    Application Name: iexplore.exe
    Application Version: 8.0.7600.16385
    Application Timestamp: 4a5bc69e
    Hang Signature: 9c29
    Hang Type: 32
    Waiting on Application Name: iexplore.exe
    Waiting on Application Version: 8.0.7600.16385
    OS Version: 6.1.7600.2.0.0.768.3
    Locale ID: 2057
    Additional Hang Signature 1: 9c29812c68be0254c5ffd3914cdd69cd
    Additional Hang Signature 2: 72dd
    Additional Hang Signature 3: 72dd670eacc23651bdca3f7f9c4e7417
    Additional Hang Signature 4: 9c29
    Additional Hang Signature 5: 9c29812c68be0254c5ffd3914cdd69cd
    Additional Hang Signature 6: 72dd
    Additional Hang Signature 7: 72dd670eacc23651bdca3f7f9c4e7417
    </dir>
    Extra information about the problem
    <dir>
    </dir><dir></dir><dir></dir><dir>
    Bucket ID: 646587220
    </dir>

    Unfortunately your post is off topic here, in the MSDN Subscriptions feedback forum, because it is not feedback regarding the MSDN Subscription. This is a standard response I’ve written up in advance to help many people (thousands, really.) who
    happen to post their question in my forum, but please don’t ignore it.  The links provided below I’ve collected to help with many issues we’ve seen.
    For technical issues with Microsoft products that you would run into as an end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products.   Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an IT professional (like more technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the MSDN Subscription, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots of the issue
    (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really have no idea where to post this question, then you shouldn’t have posted here, because we have a forum just for you!  It’s called the ‘Where is the forum for…?’ forum and its here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Please review the topic of the forum you’re posting in before posting your question.  Moving your post to the off topic forum.
    Thanks, Mike
    MSDN and TechNet Subscriptions Support

  • Unable to open pdf files using Internet Explorer and Adobe 9.1

    We are unable to open any/all pdf files in Internet Explorer 6 or 7 using Adobe Reader 9.1 on Windows XP SP2.
    The error message is that IE has a problem and sorry for the inconvenience.
    Clicking "OK" closes IE.
    We did not have any issue with Adobe Reader 8.1.
    What we did to date:
    1. Uninstall Adobe Reader 9.1
    2. Run Windows Clean Utility to remove any remnant of Adobe Reader 8
    3. Re-install Adobe Reader 9.1
    Any other suggestions?
    Need to have this upgrade.

    I'm having a similar issue. Prior to upgrading to Acrobat 9.1 I was able to view PDFs from IE 6. No longer. Instead I get a message: "Error opening document. File cannot be found."
    Help?

  • Will not open anymore, asking is I want to open file in Internet Explorer.

    I was upgrading my firefox to 5.0 and after that my comuter told me a had a virus threat. I pressed: to put the treat in the "vault" for further dicition, and it starded to remove the threat instead. When it was done and I tried to start firefox again it didn't work. I tried to download it again but it won't start it. It keeps asking me if I want to open the file in "Internet explorer". even if I go to "all progams" and click on it there it wont open. What can I do to make it work agan??? Do I have to delete it and reinstall everything??? The window I had open is still working but I cannot open another window. I really like firefox so I want to fix it!

    See:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.com/kb/Firefox+crashes
    If you have submitted Breakpad crash reports then post the IDs of one or more Breakpad crash reports (bp-xxxxxxxx-xxxxxxxxx-xxxx-xxxxxxxxxxxx).
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    You can open the <b>about:crashes</b> page via the location bar, like you open a website.
    See:
    *http://kb.mozillazine.org/Breakpad (Mozilla Crash Reporter)
    *https://support.mozilla.com/kb/Mozilla+Crash+Reporter
    *https://developer.mozilla.org/en/How_to_get_a_stacktrace_for_a_bug_report

  • Unable to open PDF files in Internet Explorer

    Hello,
    One of our users has a problem with opening PDF files in Internet Explorer.
    Translation:
    Adobe PDF-document
    There is a problem with Adobe Acrobat/Reader. Close Adobe Acrobat/Read and try again.
    The user is using Adobe Acrobat 8 Standard in combination with Windows XP and Internet Explorer 6. I reinstalled Adobe Acrobat (under an administrator account), deleted the local user profile and the problem is still there.
    Does anyone have an idea about this? The error message doesn't really say what is wrong. Adobe Reader is not installed.

    What exactly means "unable"?  Do you see a little x in a box on the top left of IE11?  If so, this may be the solution: http://support.microsoft.com/kb/2716529

  • Problem downloading file's from a .php cart

    Having problems downloading files form a php based cart software, but Firefox works fine and also on a PC they download on Explorer fine, is there a setting on Safari to fix this or is there another way around this.

    Welcome to Apple Discussions
    Usually, this type of content doesn't work on Safari due to a PC mentality when coding the site. Here, Firefox etc. are better able to read this code.
    Also, a good reason for having alternate browsers from which to choose.

  • Unable to download JNLP in internet explorer.

    I am not able to download JNLP using internet explorer.
    It is showing message as
    Internet Explorer cannot download <jnlp file name > from <server ip>.
    Internet Explorer was not able to open this internet site.The requested site is either not avalilable or cannot be found. Please try again later.
    Please help.

    java_insight wrote: I am not able to download JNLP using internet explorer.
    Did you try using FireFox (or any other browser)?
    java_insight wrote: It is showing message as
    Internet Explorer cannot download <jnlp file name > from <server ip>.
    Internet Explorer was not able to open this internet site.
    What internet site? Of more specifically, what exact URL is in your IE's address bar when you get that message?
    It might simply be that the site's server is 'offline'.
    java_insight wrote: The requested site is either not available or cannot be found. Please try again later.
    By the way. Keep trying it occasionally.
    java_insight wrote: Please help.
    I doubt anyone can offer much help without more specific and exact details from you.
    Edit 1:
    Now that I note that this thread was ['crossposted'|http://forum.java.sun.com/thread.jspa?threadID=5304280] I am very inclined not to offer further help. You might want to consider never doing that again.
    Edited by: AndrewThompson64 on Jun 11, 2008 12:34 PM

  • Unable download JNLP using internet explorer.

    I am not able to download JNLP using internet explorer.
    It is showing message as
    Internet Explorer cannot download <jnlp file name > from <server ip>.
    Internet Explorer was not able to open this internet site.The requested site is either not avalilable or cannot be found. Please try again later.
    Please help.

    Crossposted

  • What does this message mean...Program: C:\Program Files (x86)\Internet Explore\iexplore.exe

    everytime i log onto the internet this message appears
    Program: C:\Program Files (x86)\Internet Explore\iexplore.exe
    AND THEN AN INTERNET HAS STOPPED WORKING BOX APPEAR AND IT SHUTS OFF
    WHAT DOES IT MEAN

    everytime i log onto the internet this message appears
    Program: C:\Program Files (x86)\Internet Explore\iexplore.exe
    AND THEN AN INTERNET HAS STOPPED WORKING BOX APPEAR AND IT SHUTS OFF
    WHAT DOES IT MEAN

  • Can t download files from internet to my Ally

    i ve had my Ally less than week.......when i try to download files from internet i get error msg that download failed.....i tried to click link and hold link and choose save and still download fails........help me.......please

    Try to Clear your Temporary Internet Files and Cookies. To delete your temporary internet files on the Lg Ally follow the directions below:
    From the Home screen, touch the applications tab (bottom of the screen).
     Touch Browser.
    Press the Menu key.
    Touch More
    Touch Settings.
    Touch Clear cache.
    Some visited website content stored on the device. The cache enables the browser to download only the content that has changed since the last time a website was visited. Since the browser only downloads changed content, pages are loaded faster.
    Touch OK.
    Touch Clear history.
    A listing of URLs (website addresses) that have been recently visited.
    Touch OK.
    Touch Clear all cookie data.
    Some visited website content stored on the device. The cache enables the browser to download only the content that has changed since the last time a website was visited. Since the browser only downloads changed content, pages are loaded faster.
    Touch OK.
    You can also find this information on the Verizon Wireless website HERE
    Hope this helps!

  • Inquiry about opening any file with internet explorer

    Dear all,
    i am opening any file with internet explorer on the client machine.but i want to open it as READ-ONLY. so is there any parameter i should add to the command.
    the command i am using is :
    client_host('"\Program Files\Internet Explorer\iexplore.exe " "'||v_file_name||'"'; );
    Thanks in advance

    Hi,
    I don't think there is a way to open a file as read only using Client_Host. But i can give you another suggestion. Change the permission of the file to readonly (may be using chmod command) before opening the file in the browser.
    client_host('chmod -w '||v_file_name);Regards,
    Arun

  • Opening a .tif or .tiff file in Internet Explorer using Quicktime in Window

    How do you open a .tif or .tiff file within Internet Explorer using Quicktime in Windows 7?
    Thank you for looking.

    Open the QuickTime control panel to Browser>Mime Settings>Images-Still image files and select TIFF image then click-ok apply ok. You want to do this without the browser running. If this doesn't help you may want to post a website with the TIFF, for myself or others to try

  • Can't exit pdf file in internet explorer.

    When I open a pdf file in internet explorer, I an unable to exit the pdf file.  The only way I can get out of it is by shutting down internet explorer.  I am using internet explorer 11 with windows 7.  Is there a way to resolve this issue??

    Are you trying to open a PDF in a 64-bit version of Internet Explorer?
    If you don't know how to see the version - In Internet Explorer, choose Help > About Internet Explorer. (In some versions of Internet Explorer, select the Question mark in the upper-right corner to select About Internet Explorer).
    To switch to the 32-bit Internet Explorer, first exit 64-bit Internet Explorer. Then double-click the program icon for the 32-bit version:  C:\Program Files (x86)\Internet Explorer\iexplore.exe

  • Opening Teststand XML file in Internet Explorer

    I have TestStand 4.1 installed on my PC.
    The test station PC has TestStand 4.0 installed.
    When I open the XML report file in Internet Explorer on my PC, I just get run-on text.
    What am I doing wrong?

    What do you mean with "run-on text"?
    If you refer to the XML content (including the tags, "raw XML"), then the Internet Explorer fails to display the content of the XML using the style sheet.
    Another option is that you configured the Internet Explorer to always display the raw content instead of using the style sheet.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

Maybe you are looking for

  • File Adapter , Processing Sequence

    Hi All,    Can you please help me to understand these? 1. When i configure a Sender File Adapter with file pattern *.txt, Does it handle the files one after another? Or does it span multiple threads and processes multiple files in parallel? 2. If i s

  • OS command to access the non SAP server to create folders in the server

    Hi All, For the Pre press screen ABAP team need to create some WIP folders in 10.10.10.215.So I want to try out the option of using OS command to access that server to create folders at a specific location in that server. Can you please tell me the w

  • Material Batch in Production Order

    Good afternoon, We have the scenario where a Material batch is only allowed in ONE production order, for example: Material 123, Batch A: Qty50 Material 123, Batch B: Qty50 I have a production Order that requires 75 of Material 123. The production Ord

  • READ_REPORT_LINE_TOO_LONG

    Hi I am getting a dump 'READ_REPORT_LINE_TOO_LONG'. the program is Z, but the dump is coming in some standard table. the thing is that I am getting this dump  in quality but not in dev. please help Regards Manu

  • Nokia c2-03 latest software update 7.48

    why nokia c2-03 crew members doing stupidity again and again? The new firmware 7.48 in nokia c2-03 is bad. The phone still have many problems 1) no streaming 2)no music equiliser. 3)while playing vedio, this vedio may not play very wel massege appear