in my programm, I generate multiple CSV-Files which I want to publish on a Webpage as one .zip file. For that I want to use Java 1.6 on the server.
At the moment, I can create a .csv File without problems. Now I want to write the content of the BufferedWriter, I use to create the csv-File, to write directly into a Zip-File (without storing the csv File).
I found some tutorials like Creating zip archive in Java and http://www.mkyong.com/java/how-to-compress-files-in-zip-format/ And I want to do more or less the same in my Application, but I don't like the byte-Arrays.
Can I avoid this byte-Arrays?