Jump to content
JasperReports Library 7.0 is now available ×

JasperPrint object in the database


2004 IR Help

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...