This is a friend of mine, Taranaki: (perfect picture timing)

Best contact photo 2016

I want to extract this photo to a PNG on my device. How do I do that?

  • Is the Android rooted? – Firelord Sep 3 '16 at 22:00
  • @Firelord no, it's not. – Aly Sep 3 '16 at 22:01

The best way is to do the following steps:

  1. Go to contacts
  2. Options > Import/Export
  3. Select Export to .vcf file

Now the .vcf backup will be stored in your storage.

  1. Open .vcf file in an advanced editor (in pc or phone)
  2. Scroll and find the entry of the particular contact.
  3. You can find a base64 encrypted code of your contact's photo -copy it.
  4. Now open some online base64 decoder and paste the code and click decrypt.

You have your photo. Enjoy.

| improve this answer | |
  • you can also share the particular contact to, say, your gmail account or bluetooth or ES file explorer (save to storage) .etc. which will extract just that contact as a .vcf file instead of all contacts. – Madushan Sep 3 '16 at 7:27
  • Or if you are a rooted user, you can find the sqlite database where all the contact info is stored by navigating to /data/data/com.Android.providers/contacts/databases/contacts.db – Abhishek K Sep 3 '16 at 7:31
  • 1
    The VCF only stores a 96x96, which isn't good enough. @AbhishekK Can I access that with ADB? – Aly Sep 3 '16 at 14:07
  • @Soren yes, mostly (but not all) contacts apps export .vcf with the reduced sized images. Actual images are stored in /data/data/com.android.providers.contacts/files/photos/, not accessible through adb without root. – Irfan Latif Jan 2 at 12:33

Worked for me the solution of base64 encrypted code but its not the regular base64 online web, its base64 image decoder online web, that its not equal...

I opened the vcf file with notepad++ I copy the base64 code without the first type codes: PHOTO;TYPE=PNG;ENCODING=B: I opened on a base64 image decoder online web:


And thats it !! :)


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.