• Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpServletResponse, how to send two byte[] arrays through one ServletOutputStream?

 
Milutin Markovic
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a database to which was added more StyledDouments into blob values. java servlet 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?



 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put it in a loop and keep writing?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!