I am able to take picture in my android application and i am able to get its path too. Now after clicking that picture, i have created a button called "upload image" which when clicked should upload that image as a BLOB object in an external database hosted online.
I am unable to do that. Can anyone help me in this.
This is the code i am taking for getting the path of the image to be uploaded:
String filePath =
Environment.getExternalStorageDirectory() +"/your_image_name.jpeg";
File file = new File(filePath);
Uri output = Uri.fromFile(file);
Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, output);