How can I store the images which is taken from camera, directly to the server without storing in local system file?
I have tried to work out below:
Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
File photo = new File(Environment.getExternalStorageDirectory()
+ "/Application", "IMG_temp.jpg");
System.gc();
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photo));
imageUri = Uri.fromFile(photo);
startActivityForResult(intent, 1);
But how can I upload the image without giving path of local directory?