BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
lmflores Offline
New Member
 
Posts: 3
Join Date: Nov 2005
Model: 7100g
Default Push Data Problems - 11-01-2005, 01:43 PM

Hi:
First of all, Mark, sorry about sending an e-mail instead of making this public. I didn´t read.

I am making an application tha must provide off-line information. The thing is that the information we are using is up to 3 Mbytes in csv format. Is the smaller we can get.
We have tried using a HttpConnection and pull the data from a webserver, but the page size is very large and i get the "Entity Request too Large" error.

We tried to do it with e-mails attachments, making a custom attachment handler, but the actual device seems to have problems downloading attachements biggers than 2 Mbytes.

The last thing we are testing is a direct socket connection. The handheld connects to a server that sends the data, but we are having problems. The server seems to send the data faster than the handheld is receiving, and when the server finishing sending the 40,000 record, the handheld is receiving the 6,000 record and it gets freeze.
Does anyone knows why this is happening?

We are not using BES and we don´t really want to.
Does anyone can suggest a way to solve this problem without using BES?

Thanks in advanced
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
arconsulting Offline
Thumbs Must Hurt
 
Posts: 175
Join Date: Aug 2004
Location: Metro NYC
Default 11-05-2005, 01:33 PM

3MB over a wireless connection is a lot of data.

If you must do it w/o a BES, you need to break your 3MB file into managable chunks. FYI, RIM recommends packets that are 2-3KB in size.

First, your device will need to query the server for a directory of files (aka chunks) and then request each of these files individually. If one fails, the device will rerequest the file until it has all of them. Not pretty.

One important note is that different carriers impose different max sizes for http requests/responses.

With BES, the work can be done on the server side.

Either way, you will consume a lot of battery life downloading a 3MB file.

Can you get the data onto the device in another way? Sync via USB and then just send updates wirelessly?


-- Aric Rosenbaum
BlackBerry consulting, BlackBerry development
www.arconsultinginc.com
BlackBerry consulting and development (RIM SI Partner)
   
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On






Copyright © 2004-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1