hussainian Posted October 15, 2009 Share Posted October 15, 2009 Hi!What I'm doing is that in a servlet, converting JasperPrint object into output stream and then calling that servlet in an applet. That applet convert the stream back into JasperPrint and displayes it in applet in the browser. Code of servlet is as follows: response.setContentType("application/octet-stream"); ServletOutputStream ouputStream = response.getOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(ouputStream); oos.writeObject(jasperPrint); oos.flush(); oos.close(); ouputStream.flush(); ouputStream.close();The issue is when in the applet, I get it back to JasperPrint using JRLoader.loadObject, I get exception Error Loading Object. Please suggest some solution.Thanks. Link to comment Share on other sites More sharing options...
mdahlman Posted October 15, 2009 Share Posted October 15, 2009 hussainian,This isn't an iReport question. If it's a JR question, please post it to that forum.Regards,Matt Link to comment Share on other sites More sharing options...
hussainian Posted October 16, 2009 Author Share Posted October 16, 2009 Ok. Can you please tell me what is this JR Forum? Link to comment Share on other sites More sharing options...
mdahlman Posted October 16, 2009 Share Posted October 16, 2009 I meant the JasperReports forum. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now