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.

inside custom component

Java Development

Reply
New Contributor
sankarlpgym
Posts: 2
Registered: ‎10-30-2012
My Device: 8430
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: 19,598
Registered: ‎07-14-2008
My Device: Not Specified

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.
Developer
vishnuskumar
Posts: 38
Registered: ‎01-21-2014
My Device: Blackberry curve
My Carrier: 918547626119

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

Hey I'm new here and didn't get much of an Idea how to do this can you show me your code if you don't mind.... thanks 

 

Please use plain text.
Developer
peter_strange
Posts: 19,598
Registered: ‎07-14-2008
My Device: Not Specified

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

[ Edited ]

"can you show me your code"

 

Code is attached to the first post in this Thread. 

Please use plain text.
Developer
vishnuskumar
Posts: 38
Registered: ‎01-21-2014
My Device: Blackberry curve
My Carrier: 918547626119

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

that's a JDE file I was asking you about the blackberry code and the 'necessary classes' you were saying 

Please use plain text.
Developer
peter_strange
Posts: 19,598
Registered: ‎07-14-2008
My Device: Not Specified

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

I would not install the JDE just to get this project.  Create a new project in Eclipse, copy the source files in and you should be good to go. 

Please use plain text.