bytearrayoutputstream « Filter « JSP-Servlet Q&A





1. ByteArrayOutputStream to PrintWriter (Java Servlet)    stackoverflow.com

Writing generated PDF (ByteArrayOutputStream) in a Servlet to PrintWriter. I am desperately looking for a way to write a generated PDF file to the response PrintWriter. Since a Filter up the hierarchy ...