Results 1 to 2 of 2
Thread: Content-Dispositon issue in IE9
- 04-04-2012, 12:47 PM #1
Member
- Join Date
- Apr 2012
- Posts
- 1
- Rep Power
- 0
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();
- 04-17-2012, 09:15 AM #2
JavaDoctor
- Join Date
- Apr 2012
- Location
- Internet
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
Regular Expression issue and setName() method issue
By geforce in forum New To JavaReplies: 2Last Post: 01-30-2012, 03:33 AM -
mail content are not encoded as per content-transfer- encoding
By Luna Lovegood in forum New To JavaReplies: 1Last Post: 04-19-2011, 08:52 AM -
Content type for MS files "content/unknown" with URLConnection
By serjant in forum NetworkingReplies: 2Last Post: 05-30-2009, 10:42 AM -
Can not see the content of the url
By neeraj.singh in forum Java 2DReplies: 0Last Post: 02-17-2009, 01:44 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks