Here is what I am doing:
In onActivityResult, I get the data in an Intent.
 Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
 startActivityForResult(intent, TAKE_PICTURE);
This code gets the image ID:
data.getData().getLastPathSegment();
Now i want to use this image ID to get byte[] imageData so I can upload the image on a server.
How do I go about it?
 
     
     
     
    