Android How to get image path of contact photo?
问题 I need to upload contact image to server but not able to get real path. Please anyone help me. I'm getting below uri. URI: content://com.android.contacts/display_photo/2, 回答1: first get InputStream from Contact.Write the Inpustream in file and save as Image File. Finally upload that image path to server after success simply delete that Image File. See below code. First I get InputStream from Contact by using Contact Id. getContactInputStream("58");//58 is my contact id. public void