Le vendredi 27 mars 2009 à 03:26 -0400, Chris Frey a écrit : > Found it. Took me a while, though. :-)
Congratulation... > First, I had to get past some evolution-data-server library hurdles. > It looks like you didn't run into this, but I posted a patch over on > the opensync-devel list that takes care of that. Indeed, I haven't this issue (maybe, I'm using the SID debian) > In my travels through the code, vformat.c had comments that stated that > PHOTO fields in VCARD's need to have TYPE parameters as well. I don't > know what those values are in the RFC, but it occurs to me that we may > need to do some conversion. Do you know what photo image format the > Blackberry uses? I haven't had time to look tonight. > > Your Photo patch should apply to the top of the latest master branch. > I'd like to have the TYPE and photo format issues nailed down first > before I apply it. Can you look into this? Into vCard 3.0 since, we support only this format, the photo is an image file encoded to BASE64. So when you sync from BlackBerry to Evolution, you have to build a vCard with : PHOTO;ENCODING=B:/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAgGBgcGBQgHBwcJCQgKDBQNDA sLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDIBCQkJDAsMGA0N .... As far as this point, the patch is OK. Beside of, I have just tested my patch with your correction and my patch works well. I have set a photo contact from my BlackBerry, I can see the photo in Evolution after the synchronization :) On the other hand, you don't have to encode the image when you send a vcard with photo from Evolution to BlackBerry. So when you sync from Evolution to BlackBerry, you have to decode the photo read from the vCard. Here also, the patch seems OK. I think that the BlackBerry accepts all image format (BMP, JPG, GIF...) I have tried to use a PDF file instead of an image. The BlackBerry ignores the attachment... An other point, I don't know the maximum size of the image that we can use ! And I think that it's the most critical point. So, I think that you can try the patch. It should work on your BlackBerry. But on my BlackBerry Storm the synchronization from Evolution to BlackBerry doesn't work... I think that there is a bug in the USB protocol (into r_contact). Beside of, I have the issue : - create a contact on your BlackBerry with photo - make a backup of your address book - try to restore your address book On a BlackBerry Storm, it doesn't work... and it's the same bug that my synchronization issue. Why ? When you want add a contact to address book, the USB packet is too big... So you have to split the packet to several packets. And I think that the function : void Socket::Packet(Data &send, Data &receive, int timeout) doesn't fragment the packet very well. I'm going to try a solution. Otherwise, I can't restore my backup and I can't synchronize vCard with photo :( To put in a nutshell : 1-a) !(BlackBerry Storm) : Evolution => BlackBerry is OK 1-b) !(BlackBerry Storm) : BlackBerry => Evolution is OK 2-a) BlackBerry Storm : Evolution => BlackBerry is KO 2-b) BlackBerry Storm : BlackBerry => Evolution is OK Regards, -- Nicolas VIVIEN ------------------------------------------------------------------------------ _______________________________________________ Barry-devel mailing list Barry-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/barry-devel