hpillai

Greenhorn
+ Follow
since May 14, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by hpillai

Hi all:
I am trying to launch PDF files from a JSP page. This works fine for Netscape but it is not launching the viewer from IE 5.01. The PDF file shows up on the screen with grabage characters. Do you have any idead why is this? Any solutions to this is really appreciated!
Below is the code
Thanks,
Hari
try{
response.setContentType("application/pdf");
/**
* retrieve the OutputStream to the client
* instead of using the JSPWriter/PrintWriter as this may
* bring in character encoding on the data
* So use OutputStream::write(byte[]) to send the data to client
* and flush it.
*/
OutputStream outstream = response.getOutputStream();
byte[] data = reader.readFile();
if(data == null)
{
throw new RuntimeException("Error Reading The Report File...");
}
outstream.write(data);
outstream.flush();
}catch(Exception e){}
23 years ago
Hi:
Can anyone tell me to how to call a DB2/0S390 v 7.1 stored procedure that is residing on MainFrame in Java. I am able to establish the connection through JDBC-ODBC bridge to the DB2 but, unable to execute the stored procedure. I am able to connect to an Oracle Stored Procedure through the prepareCall,setXXX,registerOutParameter. Is this the same way it works for DB2?
Any help is really appreciated.
Thanks,
Hari