Ulf Dittmer wrote:As Paul said, Hibernate has nothing to do with PDFs; where do you think is the connection between the two?
My plan is once i get the handle for the InputStream fro the Blob , i will be writing it to the pdfWriter using iText.
And, since you mention JSPs, let me point out that you can't stream binary content (like a PDF) from a JSP - you need to use a servlet.
I will be using Servlet only.
As to the code snippet you posted, what's the extra ByteArrayOutputStream for? Why not use the ServletOutputStream directly?
seems easier to work with iText API once i get the BinaryStream from a Blob