File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes decompression of zip files in j2ME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "decompression of zip files in j2ME" Watch "decompression of zip files in j2ME" New topic

decompression of zip files in j2ME

Holly Pearl

Joined: Mar 30, 2009
Posts: 1

I am trying to read a zip file(having 100 text files) from the web server. I am using HttpConnection and I am reading the bytes using ZLibInputStream. I need to decompress the bytes. As there is no inflate function in j2me. I searched online and found GZIP.inflate() function provided by

I am wondering if anyone had tested the GZIP.inflate function. I appreciate if anyone could provide a sample code. Also, does the file extension has to be .zip or .gzip.

Thanks in advance.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

"Sri Sri",

Welcome to the JavaRanch. We don't have many rules here, but we do insist that you use you Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see .

I can't say specifically about your problem, since I'm not familiar. The one thing that you do need to determine, however, is whether the java4ever solution is designed to run in a JME environment. The JME core classes don't have all the methods and capabilities that the full JRE definition provides, so if a class was coded to use those missing methods or objects, it won't work in a JME JVM.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: decompression of zip files in j2ME
It's not a secret anymore!