BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links




Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
ujbandara Offline
Thumbs Must Hurt
 
ujbandara's Avatar
 
Posts: 153
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Question Best way to transfer/send data from device to server side ? - 08-18-2006, 07:38 AM

Hi,
Say, I have collected some data to the device. As example I have “Saman” as customer name and “25” as his age. These data are captured via device.

Now I want send these things to our server…..
(Now I send these data as parameters of a URL.)

Instead of URL parameter passing what are the other possible ways?
How can I send data to server (blackberry server or any other server)?


Did you ever compare Affrican Elephants and Sri Lankan Elephants?
Where are classic Elephants?

Upul
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
ujbandara Offline
Thumbs Must Hurt
 
ujbandara's Avatar
 
Posts: 153
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Default 08-18-2006, 07:51 AM

What I need to do is save those Name and Age in Server Side SQL Database.

Data are capture via BB Device and when it save those data should go to server side databse.


Did you ever compare Affrican Elephants and Sri Lankan Elephants?
Where are classic Elephants?

Upul
   
  (#3 (permalink)) Old
simon.hain Offline
CrackBerry Addict
 
Posts: 755
Join Date: Apr 2005
Location: hamburg, germany
Model: 8700
Carrier: o2
Default 08-18-2006, 08:48 AM

we solved this by developing a server application (with standard java/eclipse) that runs on a certain port and listens for commands with parameters.

the BB app opens a socket connection on this specific port and sends the commands.

these commands are translated into SQL statements and executed via jdbc on a sql database, the result set is translated into a string array and sent back.


java developer, Devinto, hamburg/germany
   
  (#4 (permalink)) Old
ujbandara Offline
Thumbs Must Hurt
 
ujbandara's Avatar
 
Posts: 153
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Default 08-18-2006, 09:09 AM

Oh.. Thanks Simon

Few more questions....

Do we have to store data temporally in BB Device?

What are good tutorials which you are prefer to follow?

What do you think that passing data as parameters on a URL?

Can we do it using Netbeans ?
Are these application are complex?


Did you ever compare Affrican Elephants and Sri Lankan Elephants?
Where are classic Elephants?

Upul
   
  (#5 (permalink)) Old
donricouga Offline
Thumbs Must Hurt
 
Posts: 58
Join Date: Jul 2006
Location: Atlanta
Model: 8703e
Carrier: Sprint
Default 08-18-2006, 10:56 AM

How bout writing a simple webservice and using some SOAP API like kSOAP to send that data to the backend.
   
  (#6 (permalink)) Old
ujbandara Offline
Thumbs Must Hurt
 
ujbandara's Avatar
 
Posts: 153
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Default 08-18-2006, 11:45 PM

webservice ...Ya, I also thinks about it.
But is it possible in BB with Netbeans...


Did you ever compare Affrican Elephants and Sri Lankan Elephants?
Where are classic Elephants?

Upul
   
  (#7 (permalink)) Old
simon.hain Offline
CrackBerry Addict
 
Posts: 755
Join Date: Apr 2005
Location: hamburg, germany
Model: 8700
Carrier: o2
Default 08-21-2006, 05:09 AM

imo KSOAP is too much overhead. But go ahead if you like it

We have certain apps that offer an offline functionality by using persistant storage if no coverage is available, most don't because it is not really easy to implement.

good tutorials, hmm.
regarding a server application there are good examples about JDBC which can be downloaded together with the driver. the socket connection itself should be trivial.

i used the parameter-thing by URL myself. it works for small data but creates a lot of overhead and is quite slow.
if you want to work with SQL and especially want to get results back to your device you have to use a server.

feel free to contact me if you are interested in buying a general sql-bb-connector, i think we have that in stock.


java developer, Devinto, hamburg/germany
   
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