Meaningless Drivel is fun!*
The moose likes Android and the fly likes capture image and push to server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "capture image and push to server" Watch "capture image and push to server" New topic
Author

capture image and push to server

Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
hello friends...

I am trying to develop an andriod application where i want to capture image using default camera in mobile and save the image into the server.
can somebody help with the approach??
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
I found http://www.41post.com/3470/programming/android-retrieving-the-camera-preview-as-a-pixel-array, http://www.androiddevblog.net/android/programming-camera-in-android and http://groups.google.com/group/android-developers/browse_thread/thread/c85e829ab209ceea helpful.

Between them, the articles describe most of the pieces to capture an image and store it to the SD card. The rest is just uploading the binary data to a server.
Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
thankyou, that was really usefull
but what if i want to just capture and send to the server without saving to the sdcard??
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
No problem. Once you have the bytes that make up the image, you can do anything you want with them, including uploading them to a server by some means. Storing those on the SD card is optional.
 
 
subject: capture image and push to server