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
prashantwaykar
Posts: 8
Registered: ‎01-03-2010

Download large files using the BlackBerry Mobile Data System for 6.0 +

Hi,

 

i am trying to download 400 images in blackberry which are of smaller sizes. range 1-10kb each.

http://supportforums.blackberry.com/t5/Java-Development/Download-large-files-using-the-BlackBerry-Mo...

This is the best available option. But, there is a pause which we add in

/*
                 * Pause to allow connections to close and other Threads
                 * to run.
                 */
                 Thread.sleep(1000);

 If i download 400 images then i will get a delay of minimum 400sec which is not desirable. Is there any work around available that can be provided the increase the download speed. I mean is there any change in the chunk size to try out for 6.0+ devices.

 

Suggestions will be valuable.

Thanks

Please use plain text.
Administrator
MSohm
Posts: 13,066
Registered: ‎07-09-2008
My Carrier: Bell

Re: Download large files using the BlackBerry Mobile Data System for 6.0 +

A 10kb file shouldn't require any sleep/delay.  The example pertains to very large files, where there could be some lag in writing the file out to a micro SD card.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.