Possible Duplicate:
java.lang.IllegalArgumentException: contains a path separator
I am trying to upload a file from my sdcard, file path url="sdcard/Folder/test.doc". I am using the following code to upload to server.
String url = path.getText().toString();
FileInputStream fis = openFileInput(url);
It is giving me error :
FATAL EXCEPTION: main 10-19 01:19:39.480: E/AndroidRuntime(7459): java.lang.IllegalArgumentException: File /sdcard/download/ABC.pdf contains a path separator.
Can some one please tell me how to get it done?