I am using a Servelt to display byte array of PDF into IE browser. Correct number of bytes are returned from existing PDF. Any help with code will be appreciated. I am using code below:
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
I only get Base64 encoded String that makes up PDF. I do not get the PDF itself as argument. So, my input argument is String. I decode that String into byte array.
So, my goal is to convert byte array back to PDF for display purpose.
Note that Sun doesn't recommend to use any classes from misc. However if your app isn't going to last forever, then you can use the package.
Tough in space?, <a href="http://tjws.sf.net" target="_blank" rel="nofollow">Get J2EE servlet container under 150Kbytes here</a><br />Love your iPod and want it anywhere?<a href="http://mediachest.sf.net" target="_blank" rel="nofollow">Check it here.</a><br /><a href="http://7bee.j2ee.us/book/Generics%20in%20JDK%201.5.html" target="_blank" rel="nofollow">Curious about generic in Java?</a><br /><a href="http://7bee.j2ee.us/bee/index-bee.html" target="_blank" rel="nofollow">Hate ant? Use bee.</a><br /><a href="http://7bee.j2ee.us/addressbook/" target="_blank" rel="nofollow">Need contacts anywhere?</a><br /><a href="http://searchdir.sourceforge.net/" target="_blank" rel="nofollow">How to promote your business with a search engine</a>
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
a bit of art, as a gift, that will fit in a stocking