ZipOutputStream to byte[]
843836Oct 15 2003 — edited Nov 21 2007Hi, I�me trying to make a download of a zip file formated by me!!!
The return of my method(zip maker) is an output stream (ZipOutputStream) and i�d like to put this output stream into the ServletOutputStream to make the download, but the method write() of this outputStream takes only byte[], how can i do it???
I try to cast to an ByteArrayOutputStream, but it throws an ClassCastException, it�s the right approach???
There�s another way of doing it???
please help