Create Zip-File in java without using byte[] -


in programm, generate multiple csv-files want publish on webpage 1 .zip file. want use java 1.6 on server.

at moment, can create .csv file without problems. want write content of bufferedwriter, use create csv-file, write directly zip-file (without storing csv file).

i found tutorials creating zip archive in java , http://www.mkyong.com/java/how-to-compress-files-in-zip-format/ , want more or less same in application, don't byte-arrays.

can avoid byte-arrays?

its not possible since using outstream. because outstreams dealing byte write.

normally 2 ways i/o present. 1 stream based (byte), reader(char) based. zip contains stream based implementation.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -