09-27-2010 09:24 AM
As long as the folder can not be compress tar seems to be the way to go.
To Upload muliple file on server in single http request
(1) Create Tar file : Tar utility convert all file into single file.
you will get : yourfilename.tar.gz
(3) Send it to server. and server will uncompress and untar your file to again get mulitple file.
To Download muliple file from server in single http request
(1) server will provice tar.gz
(2) uncompress it using GZIPInputStream you will get : yourfile.tar
(3) use untar utility to convert tar file to muliple file again
Download Tar utility for blackberry from http://code.google.com/p/j2metar/
OR use the attachment to get full source code with TarExample.java
04-06-2011 06:52 AM
Please use the following source code for compressing and decompressing the folder in .zip format