I have a database to which was added more StyledDouments into blob values. javaservlet reads one line from the database into a byte array, sending through servletoutputstream like httpresponse to applet.
Applet open a connection to the servlet, read byte stream, transform into object stream and from it get styleddocument ...
This code is working.
The problem arises when the database read several lines. each line is a byte  array. how do i send two or more byte  array as httpresponse?