Error found while opening any pdf file from IE 6


 
Thread Tools Search this Thread
Top Forums Programming Error found while opening any pdf file from IE 6
# 1  
Old 06-26-2009
Question Error found while opening any pdf file from IE 6

Hello All,

My application is followed J2ee architecture. It contains Java and jsp codes.
This application generates some reports in pdf format. I am using Weblogic 10.3 and jdk 6.
While I want to open the pdf in IE 6 with service pack 2 , the pdf not showing properly. It comes in byte code. It is not showing any exception also. I have Adobe reader 9 in my m/c.

Can any one suggest me how can I rectify this error from my code.

Thanks in advance.
# 2  
Old 06-26-2009
Obviously you are doing something wrong in your application code. However unfortunately you have not provided us with sufficient information to enable us to help you.
# 3  
Old 06-29-2009
Thanks for asking...


I have used the following code in my jsp code.

String fileName =
"abc.pdf";
response.setContentType(
"application/pdf");

response.setHeader(
"Content-Disposition", "inline; filename=\"" + fileName + "\"" );


application.log(
"write baos to reponse ...");
baos.writeTo(response.getOutputStream());

baos.close();

Please let me know if you need any further information....

Thanks in advance.
# 4  
Old 06-29-2009
Just because you set the MIME type to "application/pdf" does not mean that the output is converted to pdf. Where are you doing the actual pdf transformation?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Fatal error: 'Xm/Xm.h' file not found , motif installed

Hello, i have installed open-motif -2.3.8_1 X11 Toolkit on freebsd32bit machine. wanna compile a little script. script is ok. already compiled on other machine (linux) the message is as follows cc -o button button.c -lXm -lXt -lX11 button.c:3:10: fatal error: 'Xm/Xm.h' file not found... (5 Replies)
Discussion started by: Sennenmut
5 Replies

2. Shell Programming and Scripting

Bash - trap error file not found

Hello. In bash, is there a way to trap error "file not found" when a script call another script which is not found; then abort. Example ( part of script running with -x option set) : + return 0 + RETURN_CODE=0 + ] + /root/bin/200_yast_install/00_reset_yast_install bash:... (5 Replies)
Discussion started by: jcdole
5 Replies

3. UNIX for Dummies Questions & Answers

Pdf file format generation error in Solaris 8 server

Hi experts. We have Solaris 8 server and we set as reporting server. We are facing problem that, it is not generating pdf files in a specified format. give your valuable suggestions that, what i have to check and what are the necessary step i have to do (4 Replies)
Discussion started by: siddulamadhu
4 Replies

4. AIX

ksh file not found error for various files across system

Our AIX system is currently having an issue where calls to various executables are returning errors such as ksh: /usr/bin/oslevel: not found. This is even happening with system files, third party scripts, and with the full path included. Telnet connections are also closing immediately upon... (6 Replies)
Discussion started by: Chthonic
6 Replies

5. AIX

Opening a file in vi editor is giving out of memory error

Below is the error: Out of memory saving lines for undo - try using ed : Please help me how do I open this file. Best regards, Vishal (5 Replies)
Discussion started by: Vishal_dba
5 Replies

6. Shell Programming and Scripting

Search for file, give error if more than one file is found

Want to write a function that prints an error when passed a list of file names. If the file list is empty, print error "no file found", if there are more than one file, print "error more than one file found" (22 Replies)
Discussion started by: kristinu
22 Replies

7. Solaris

Very Importan - Vim Settings - Error while opening a File using vim

I downloaded vim.7.2 and compiled the vim source . Added the vim binary path to PATH (Because iam not the root of the box) when i load the file using vim it throws me an error Error detected while processing /home2/e3003091/.vimrc: line 2: E185: Cannot find color scheme darkblue line... (0 Replies)
Discussion started by: girija
0 Replies

8. Windows & DOS: Issues & Discussions

Error opening script file - location error

Hello, I know nothing about UNIX, ftp, etc. I am building an excel VBA macro which calls a .bat file. I've taken a pre-existing batch file and am trying to modify it to fit my purposes. I would be very grateful for some assistance. Here is my .bat file: echo off set... (9 Replies)
Discussion started by: starcraftbud
9 Replies

9. Programming

Error in opening a file C++

Hi, I have written a function which will open the file with the input name provided.Input name is in string format so while opening I am converting it using c_str().detail code below Plz let me know what is the wrong in code. 1 #include<iostream> 2 #include<fstream> 3 ... (4 Replies)
Discussion started by: forstudy3
4 Replies

10. Shell Programming and Scripting

file not found error during loop

Hi, I have a strange problem and I'm sure its because I'm doing something stupid. When I loop through all of the files in a directory they cannot be found. Any help would be greatly appreciated. Thanks, -E $ touch a.txt $ touch b.txt $ ls a.txt b.txt $ for f in `ls` ; do... (3 Replies)
Discussion started by: earls
3 Replies
Login or Register to Ask a Question