/ Published in: Java
URL: http://tripoverit.blogspot.com/2008/04/java-create-zip-file-in-memory.html
Expand |
Embed | Plain Text
while (i.hasNext()) { zipfile.putNextEntry(zipentry); zipfile.write((byte[]) files.get(fileName)); } zipfile.close(); return bos.toByteArray(); }
You need to login to post a comment.
