Re: vCard Image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 12, 2012 at 5:51 PM, Floyd Resler <fresler@xxxxxxxxxxxxx> 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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux