aspose file tools*
The moose likes Android and the fly likes how to enter binary data into sql server from my android application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "how to enter binary data into sql server from my android application" Watch "how to enter binary data into sql server from my android application" New topic
Author

how to enter binary data into sql server from my android application

Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 214
i want to insert the binary data from my andriod application...i am a beginner in andriod
and have no idea about connecting to database
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Android shouldn't connect to a DB directly; you need to go through a proxy, most easily an HTTP server. You can use the HttpClient library to connect to the HTTP server (maybe a servlet), and that in turn can access the DB.
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 214
hi;

and what if the database is in the ftp server???
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 214
can anyone tell me how to create webservices in andriod...any good tutorial???
i think using webservices i can access database through my andriod application..
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
I'm not aware of a DB that can communicate with an FTP server, so I'm not sure what good that would do.

You don't create web services on Android, you consume them. Using a library like HttpClient (which is built into the Android API) that's relatvely easy. Any HttpClient tutorial (check its web site) will do.
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 214
hi,

how do i consume webservices WRITTEN IN .net ?
is there any package in andriod using which i can connect to the webservice.?

Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 214
i want to know is there any library in andriod to connect with the database of my server?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
how do i consume webservices WRITTEN IN .net ?

The choice of server-side language doesn't matter to the client side.

is there any package in andriod using which i can connect to the webservice.?

See my previous two posts.

i want to know is there any library in andriod to connect with the database of my server?

See my first post.
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 214
hi,
i did not get a proper solution over this.can someone else help me with this as i am a newbee and need better suggeastions to start...
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
If using the HttpClient library to access a WS in an Android app is too challenging, start by using it in a desktop app. Its web site has plenty of examples; have you gotten those to work yet? If not, what was the problem?

If you don't have the WS yet, start reading up on the Jersey library that implements the JAX-RS API. Its web site, too, has plenty of example codes that are ready to run.

I'm not sure what else to suggest, you have to start digging in yourself at some point.
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 214
can you provide me links to refer what you suggested?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Umm, are you saying that -using a search engine of your choice- you can't find the Jersey and HttpClient web sites?
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 214
thankyou.....Tim
for the kind of help you give here.....
il try to solve
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to enter binary data into sql server from my android application