On Thu, Jul 12, 2012 at 5:51 PM, Floyd Resler <fres...@adex-intl.com> wrote:
> I'm trying to extract the image from a vCard and display it.  I'm not having 
> any luck.  I saw a sample of putting an image into a vCard via PHP and use 
> base64_encode.  So I thought base64_decode would work.  However, still no 
> luck.  Anyone have any ideas?
>
> Thanks!
> Floyd
>

Hi Floyd,

If I'm not mistaken, vCard is a text based file format. You can open
it in any text editor. You'll see some stuff which just makes sense as
plain text. Images can be embedded inside the file, which is then
indeed in base64, but you'll need to find the start and ending of the
base64 block and only decode that. Keep in mind that images can also
be referred to by URL, in which case you can just download them.

I imagine you can easily find the vCard file format on Google..

- Matijn

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to