On Sep 13, 12:40 am, Bit Liner <bitli...@gmail.com> wrote:
> i am developing an app that uses two files, and the app needs one page
> where user can download these two files compressed in a zip file.
>
> But GAE doesn't support java.io, and i don't know how generate a path/
> url that allows user to download this zip file.
>
> Some help?
With python we can generate zip files, so java should be able too.
Here's how to gzip it in python

zbuf = StringIO.StringIO()
zfile = gzip.GzipFile(None, 'wb', 9, zbuf)
zfile.write(buf)
zfile.close()
return zbuf.getvalue()

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to