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


BJ300 Plus BJ300Plus 3-30MHz Radio Power Amplifier +Fan FM 100W AM 200W SSB 300W picture

BJ300 Plus BJ300Plus 3-30MHz Radio Power Amplifier +Fan FM 100W AM 200W SSB 300W

$104.49



Honeywell Ultraviolet Flame Amplifier RM7890 A 1015 picture

Honeywell Ultraviolet Flame Amplifier RM7890 A 1015

$199.99



New In Box ATOS E-MI-AS-IR Proportional Amplifier picture

New In Box ATOS E-MI-AS-IR Proportional Amplifier

$302.12



IPC AIT-2 Interface Amplifier PC Board  picture

IPC AIT-2 Interface Amplifier PC Board

$250.00



TE Connectivity / AMP Brand 1218147-2 picture

TE Connectivity / AMP Brand 1218147-2

$236.21



Reliance Electric 5RA0400 Amplifier 400W  picture

Reliance Electric 5RA0400 Amplifier 400W

$202.83







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