Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2686
36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi;

and what if the database is in the ftp server???
 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2686
36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to know is there any library in andriod to connect with the database of my server?
 
Tim Moores
Bartender
Posts: 2686
36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2686
36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you provide me links to refer what you suggested?
 
Tim Moores
Bartender
Posts: 2686
36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thankyou.....Tim
for the kind of help you give here.....
il try to solve
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic