quarks
quarks

Reputation: 35276

What compression library works with GAE

With GAE we can't pick just about any java compression library that works with GAE out-of-the-box, even this Snappy (which I tried because it was said that its a port of Google's compression lib) library won't work, throwing access denied ("java.io.FilePermission") exception. Which is expected since File I/O is not supported.

So I'd like to ask the community for Java compression libraries that are tested to work with GAE without hacking or repackaging.

Upvotes: 2

Views: 132

Answers (1)

Francisco Spaeth
Francisco Spaeth

Reputation: 23903

Checking class whitelist you could use java.util.zip to read compressed streams

new java.util.zip.GZIPInputStream(inputStream)

and

new java.util.zip.GZIPOutputStream(outputStream)

to compress content to an output stream.

Upvotes: 1

Related Questions