Jump to content
Changes to the Jaspersoft community edition download ×

Printing PDF report from stored byte array


Recommended Posts

I need print a report from a byte array that is stored on database.

I already have the byte array.

The code is the following:



InputStream bays = new ByteArrayInputStream(auto.getArquivo());

JasperPrint print = (JasperPrint) JRLoader.loadObject(inByteArray) ;//Error

JasperViewer viewer = new JasperViewer(print, false);



In the tag Error, the Exception is the following:


StreamCorruptedException invalid stream reader


Error loading object from InputStream

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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...