• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 7645
178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7645
178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7645
178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7645
178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can you provide me links to refer what you suggested?
 
Tim Moores
Bartender
Posts: 7645
178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thankyou.....Tim
for the kind of help you give here.....
il try to solve
reply
    Bookmark Topic Watch Topic
  • New Topic