Search code examples
exportjpegvcf-vcard

Export VCF image to JPEG


I have created a .vcf contact with an iPhone and sent the file to myself in email. In that .vcf, I took a photo which is directly saved in the vCard, not in the phone's memory.

In the source of the .vcf, there is a code part starting like this:

PHOTO;ENCODING=b;TYPE=JPEG:/9j/4AAQSkZJRgABAQAAAQABAAD/4QBYRXhpZgAATU0AKgAA

And it continues on... Now, I would like to get this photo and save it as a .JPEG. Any ideas how to do that?

Thanks.


Solution

  • The encoding is Base64. You can find a tool for decoding online.

    I can recommend Freeformatter.com's decoder, which lets you save as a binary file. You will then need to rename that file to photo.jpg.