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

android - How can I execute default sms app? -

jquery .css('text-decoration') doesn't work from parents -

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