samueel01 Posted November 22, 2006 Share Posted November 22, 2006 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: Code:InputStream bays = new ByteArrayInputStream(auto.getArquivo());JasperPrint print = (JasperPrint) JRLoader.loadObject(inByteArray) ;//ErrorJasperViewer viewer = new JasperViewer(print, false);viewer.setVisible(true); 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 More sharing options...
Teodor Danciu Posted November 27, 2006 Share Posted November 27, 2006 Hi, What exactly did you put in the database?It does not seem to be a serialized JasperPrint object as expected by the API you called. I hope this helps.Teodor 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