09-08-2010 09:35 AM
I have been searching and have found info on downloading large files (download combiner), single zipped/compressed files, and adding files and resources directly to a project. My question is about downloading additional resources separately. For example, after logging in, I would like the application to download a xml settings file, plus an optional collection of images, etc. I understand how to download them individually, but I am not sure how to download them all at once. I guess if the resources were zipped and there was a good library for decompressing I could use that, although peter_strange says there is a problem with the only thing I have found on the forums, called ZipMe. (http://supportforums.blackberry.com/t5/Java-Develo
However I'm not as concerned about compressing the data as I am about combining it into a single file or single download. Anyone have any suggestions?
Thanks for any input.
Solved! Go to Solution.
09-08-2010 09:44 AM
what is wrong about downloading it one by one?
09-08-2010 10:16 AM
If i have 60 small images ... wouldn't i have to be making 60 http connections to each individual file, as opposed to a single connection to one file? I would assume that would be a lot of extra work. Also, as opposed to just periodically downloading an updated images.zip file, i would have to know the names of all the files. Unless there is a much better way im not thinking of.
09-08-2010 10:27 AM
I had problems with ZIPMe, other people have reported it working. It might have just been me. You could give it a try.
If you do, do NOT compress the files. Then it might work. The issue I had was with large compressed files. If you are not bothered about compressing then ZIP might be a good packaging method.
Other than that, you could write a tar implementation?
There is no provided BlackBerry packaging implementation.
09-08-2010 12:08 PM
As long as the files do not need to be compressed, tar seems to be the way to go. I did a quick test using the j2metar library and it seems to extract files on the sdcard fine. Thanks !
09-27-2010 09:29 AM
I have download the j2metar code and create an example for blackberry
04-06-2011 06:58 AM
To get support of zip format in blackberry for mulitple files and folders
Please use the following source code