Evolution-DecSync icon indicating copy to clipboard operation
Evolution-DecSync copied to clipboard

Images not transferred from android.

Open kocjs opened this issue 6 years ago • 5 comments

How to reproduce?

Create a contact with email address and an image on android (MotoX4 Lineage OS). Sync sync with Syncthing. Contact arrives without picture. (Debian Buster Evolution 3.30)

The other way around is working.

Thank you for this app.

kocjs avatar Dec 13 '19 18:12 kocjs

Thanks for the report! I have not looked at images yet, but I will take a look at it sometime.

39aldo39 avatar Dec 15 '19 22:12 39aldo39

I am happy to help debug.

kocjs avatar Dec 16 '19 11:12 kocjs

This behavior might be related to the issue that people at etescync has. [https://github.com/etesync/etesync-dav/issues/65]

kocjs avatar Apr 10 '20 05:04 kocjs

VCards with pictures sync well beween the evolution and the radicale plugin. They get synced to android to. I future noted that the same vCards exported from evolution and cardbook have a size of 3.3mb, exported from android the size is only 4.6kb.

This vCard has been created with cardbook and and is exported trough evolution.

BEGIN:VCARD VERSION:3.0 UID:740bd10bbd4dcd8fd9b000eaa47e32aa4ed74b1b FN:11 N:;11;;; PHOTO;TYPE="X-EVOLUTION-UNKNOWN";ENCODING=b:iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ ... 4ll+Pynr7xP+j7zv+n7bv/w8og5WStdp3CwAAAABJRU5ErkJggg== TEL;TYPE=HOME,VOICE:9823984 X-EVOLUTION-FILE-AS:11 X-MOZILLA-HTML:FALSE END:VCARD

This with the android app and did not work.

BEGIN:VCARD VERSION:2.1 N:;11;;; FN:11 TEL;HOME:982-3984 PHOTO;ENCODING=BASE64;JPEG:/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgMCAgMDAwM ... zGLrNlxAuF//9k= END:VCARD

The main difference might be the photo encoding.

kocjs avatar Apr 14 '20 11:04 kocjs

In fact the issue is a wrong PHOTO header. Exactly as pointed out in https://github.com/owncloud/contacts/issues/425. If I change it, the import results with an image in evolution. After setting the VERSION:3.0 the .vcf is also imported into cardbook.

Expected behaviour the photo section of the contact should look like PHOTO;ENCODING=B;TYPE=JPEG:/9j/4AAQSkZJRg Actual behaviour the photo section looks like PHOTO;TYPE=image/jpeg:/9j/4AAQSkZJRg

kocjs avatar Apr 14 '20 12:04 kocjs