I am trying to pass the recorded video file saved in /storage/emulated/0/Videos/someVideo.3gp in android to remote server through POST HTTP method. I used this as a way to pass video file to remote server in FileBody format. But, at the end when I am trying to execute httpClient.execute(request)
command it just keep throwing FileNotFoundException.
So, I don't understand why the video file is not accessible to outside world since I had saved it to sdcard using getExternalStorageDirectory()
. I also had added write permissions to manifest file.
P.S. I am using Nexus 7 to test this. Please help..
Thanks in advance!