Android: Uri to File -


I need to send a file through httppost. The image uri has been returned after clicking on the image But I can not make the file from the given Yuri.

I tried:

  New file (mediaUri.getPath ()); // Error: There is no such file or new file (MediaURI); New file ("file: //" + mediaUri.getPath ());   

But nothing works. Can anyone help?

You can view it or

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -