[Vobject] Error reading PHOTO from .vcf file
    Jeffrey Harris 
    jeffrey at osafoundation.org
       
    Wed Jun 11 16:23:24 CDT 2008
    
    
  
Hi Roberto,
> i'm playing with vobject and I can't read PHOTO from vcf. seems that vobject 
> can't read multi-line base64 strings
> 
> PHOTO;ENCODING=b;TYPE=JPEG:LwBjAGEAcgBkAC8ATQBTAFMARQBNAEMALwBNAGUAZABpAGEAIABmAGkAbABlAHMALwBpAG0
> AYQAn
> AGUALwBtAGUAZABpAGEAMQAuAGoAcABlAGcALgBqAHAAZwAAAA==
> 
> results in
> 
> Failed to parse line: AGUALwBtAGUAZABpAGEAMQAuAGoAcABlAGcALgBqAHAAZwAAAA==
Hmm.  Your sample line got line-wrapped in an odd way by your mail 
client, so I'm not exactly sure what the original was.  What version 
vCard was this, and what was the PRODID?
It looks to me like that last line was wrapped wrong, long lines need to 
be wrapped with an initial whitespace character, I don't see one on that 
line, which is what the parser is complaining about.
It's also possible you have a version 2.1 VCARD which is using 
quoted-printable line folding, if so quoted-printable needs to be a 
parameter like the encoding.
Sincerely,
Jeffrey
    
    
More information about the VObject
mailing list