Skip to content

Instantly share code, notes, and snippets.

@phuff
Created January 7, 2013 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phuff/4476119 to your computer and use it in GitHub Desktop.
Save phuff/4476119 to your computer and use it in GitHub Desktop.
Current version
(defn writeZipOutput [zip-output filename content]
(let [contentBytes (.getBytes content "UTF-8")]
(.putNextEntry zip-output (new ZipEntry filename))
(.write zip-output contentBytes (.length contentBytes))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment