2004 IR Help Posted August 24, 2006 Share Posted August 24, 2006 By: Nikhil Deshpande - ndeshpande JasperPrint object in the database 2005-12-22 01:00 I want to store the JasperPrint object in the database as a BLOB. There is a method runReportToPdf in the JasperRunManager class which creates a byte array object in the PDF format. I do not find any method to generate a byte array object in the print object format. Please help. Nikhil By: Johnny A - sykosity RE: JasperPrint object in the database 2005-12-22 12:20 Try looking into ByteArrayOutputStream class and see if you can work something out with that. Something like: ByteArrayOutputStream byteStream = new ByteArrayOutputStream(SIZE); ObjectOutputStream os = new ObjectOutputStream(new BufferedOutputStream(byteStream)); os.writeObject(jasperPrintObject); But I can't promise this is what you'll need or that the code above will do what you want. Hope that helps though, John 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