BlackBerry Forums Support Community
              

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

Please Login to Remove!

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
Offline  
Old 08-18-2006, 06:51 AM   #2
ujbandara
Thumbs Must Hurt
 
ujbandara's Avatar
 
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Posts: 153
Default

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
Offline  
Old 08-18-2006, 07:48 AM   #3
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

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
Offline  
Old 08-18-2006, 08:09 AM   #4
ujbandara
Thumbs Must Hurt
 
ujbandara's Avatar
 
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Posts: 153
Default

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
Offline  
Old 08-18-2006, 09:56 AM   #5
donricouga
Thumbs Must Hurt
 
Join Date: Jul 2006
Location: Atlanta
Model: 8703e
Carrier: Sprint
Posts: 58
Default

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

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
Offline  
Old 08-21-2006, 04:09 AM   #7
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

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
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD picture

USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD

$11.99



USA Windows VPS Server / RDP Server / VPS Hosting 12GB RAM + 400GB HDD picture

USA Windows VPS Server / RDP Server / VPS Hosting 12GB RAM + 400GB HDD

$27.99



Vollrath 72050 Cayenne 28 3/4

Vollrath 72050 Cayenne 28 3/4" x 13 3/4" Heat 'n Serve 4/3 Size Countertop Food

$285.00



NEW MOXA NPORT 5150 serial server DHL Fast delivery picture

NEW MOXA NPORT 5150 serial server DHL Fast delivery

$182.28



USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD -  1 Year picture

USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD - 1 Year

$129.88



Server SE-SS 07020 Server Express Single Drop-In - NEW - COMPLETE - Genuine OEM picture

Server SE-SS 07020 Server Express Single Drop-In - NEW - COMPLETE - Genuine OEM

$180.00







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.