Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Contributor
sankarlpgym
Posts: 2
Registered: ‎10-30-2012
My Carrier: aircel

Re: Unzip zip archive with sample - resource installer to SD Card

Will it support for gzip?

 

 

 

 

 

 

 

 

 

 

 

 

Please use plain text.
Developer
peter_strange
Posts: 17,630
Registered: ‎07-14-2008

Re: Unzip zip archive with sample - resource installer to SD Card

GZIP and ZIP are different in that the archive format is different.  The code supplied only supports ZIP archives.

 

However there is GZIP support already built in - look for the associated GZIP...  stream classes in the API.  These work well (I use these in applications).

 

One caveat, I have not specifically tested this, but I don't think the supplied code supports a GZIP archive, which you create when you have multiple files compressed sequentially using GZIP and packaged as a single GZIP file.  In this situation, I think the standard stream processing will only provide you access to the first of the files. 

Please use plain text.