Results 1 to 2 of 2
  1. #1
    karim481 is offline Member
    Join Date
    Apr 2012
    Posts
    1
    Rep Power
    0

    Default Content-Dispositon issue in IE9

    Hi,
    I want to download a file as an attachment to IE9 browser. I have written the code to perform this and is working fine in IE6 and Ie7 but not in IE9. When i click open button in IE9 information bar it says "file might have been moved or deleted". But sometimes IE9 is opening the documents. Please find the below code which i am using. Please help me in resolving the issue.

    servletOutputStream = response.getOutputStream();
    response.setContentType("text/richtext");
    response.setHeader("Content-Disposition", "attachment;filename=one.rtf");
    response.setContentLength(byteArrayGrid.length);
    servletOutputStream.write(byteArrayGrid);
    servletOutputStream.flush();

  2. #2
    OC-John is offline JavaDoctor
    Join Date
    Apr 2012
    Location
    Internet
    Posts
    8
    Rep Power
    0

    Default Re: Content-Dispositon issue in IE9

    Whether the file name includes any special characters?

Similar Threads

  1. Regular Expression issue and setName() method issue
    By geforce in forum New To Java
    Replies: 2
    Last Post: 01-30-2012, 03:33 AM
  2. Replies: 1
    Last Post: 04-19-2011, 08:52 AM
  3. Replies: 2
    Last Post: 05-30-2009, 10:42 AM
  4. Can not see the content of the url
    By neeraj.singh in forum Java 2D
    Replies: 0
    Last Post: 02-17-2009, 01:44 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •