hi, i want to display the content of a pdf file in the browser when requested for a jsp file.i am reading the content of pdf in jsp and using the servletoutput stream i am displaying it. But it is displaying as bytes like 0 1 .... . not the original content.
how to display the original content instead of bytes ?
JSP pages are not meant to be used to emit binary data. While it's theoretically possible, practical considerations make it unfeasible. Convert the JSP into a servlet, and things should go much smoother.
Ping & DNS - updated with new look and Ping home screen widget
Joined: Jul 11, 2006
Hi Ulf, Thank yo for reply. Using servlet fine. Even the jsp will convert to a servlet ,why can't a jsp.