• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

decompression of zip files in j2ME

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

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 java4ever.com.

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.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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 http://www.javaranch.com/name.jsp .

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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic