J
Joona I Palaste
We're currently stuck in our JSP application. We need to output a PDF
file from a JSP page. However, it turns out that the only way to write
anything to the JSP page's output is to use a
javax.servlet.jsp.JspWriter, which does not correctly handle raw binary
data (necessary for writing PDFs). Its mere existence prevents us from
even getting the output stream directly, much less writing binary data
to it.
Is there any way in the world that we could write raw binary data,
specifically, PDFs, to a JSP page output? The data is dynamically
generated, and can come from a java.lang.String or a byte array.
Reading it from a file would not be such a good idea because we would
get hassles with temporary files.
Please help, thanks.
--
/-- Joona Palaste ([email protected]) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"No, Maggie, not Aztec, Olmec! Ol-mec!"
- Lisa Simpson
file from a JSP page. However, it turns out that the only way to write
anything to the JSP page's output is to use a
javax.servlet.jsp.JspWriter, which does not correctly handle raw binary
data (necessary for writing PDFs). Its mere existence prevents us from
even getting the output stream directly, much less writing binary data
to it.
Is there any way in the world that we could write raw binary data,
specifically, PDFs, to a JSP page output? The data is dynamically
generated, and can come from a java.lang.String or a byte array.
Reading it from a file would not be such a good idea because we would
get hassles with temporary files.
Please help, thanks.
--
/-- Joona Palaste ([email protected]) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"No, Maggie, not Aztec, Olmec! Ol-mec!"
- Lisa Simpson