[Solved] Return as ByteArrayOutputStream instead of FileOutputStream

I am slightly confused to what you are asking. I have not used Apache Fop, but will try answer this question. If you want to read PDF file as byte array use input streams instead. But if you want to use ByteArrayOutputStream that is writing bytes you basically answered your own question, try using existing … Read more