Possible Duplicate:
In Java: How to zip file from byte[] array?
Here's the deal, I work at a university web office and we provide a few website templates for university departments and clubs. I have been tasked with building a web form that will allow them to select the template they want and provide a title which will be programmatically inserted into the template they select before downloading.
My question is, can I pull the template into memory, insert the title and output it to a zip archive without writing a temporary file to disk?
It seems that Java's ZipEntry requires a filename and cannot simply use data already in memory.