I am generating a PDF file and saving it to a Byte array output stream. I have no problems writing to file but I want to pass it back to my web service without saving to file.
How do I convert the ByteArrayOutputStream back to PDF? [ September 29, 2006: Message edited by: Patrick Mugabe ]
Ok, don't worry I found a way. I have to get the byte array of the ByteArrayOutputStream e.g. byte[] bytes = baos.toByteArray(); (where baos is an instance of the ByteArrayOutputStream)
then read it using ByteArrayInputStream
"To do good, you actually have to do something." -- Yvon Chouinard