Coder Social home page Coder Social logo

Comments (7)

mangstadt avatar mangstadt commented on June 29, 2024

The PHOTO property is incorrectly formatted. It should be:

PHOTO;TYPE=jpeg;VALUE=uri:https://png.pngtree.com/png-clipart/20190516/original/pngtree-infinity-initial-letter-dd-letter-d-logo-design-linked-png-image_3749553.jpg

from ez-vcard.

rajp6265 avatar rajp6265 commented on June 29, 2024

Hi, I have generated below vcf data from the library itself, still not getting the contact image.

Java Code For adding Photo:
Photo photo = new Photo(payload.getProfilePhoto(), ImageType.JPEG);
vcard.addPhoto(photo);

BEGIN:VCARD
VERSION:3.0
PRODID:ez-vcard 0.11.0
N:;Ars
PHOTO;TYPE=jpeg;VALUE=uri:https://png.pngtree.com/png-clipart/20190516/orig
inal/pngtree-infinity-initial-letter-dd-letter-d-logo-design-linked-png-im
age_3749553.jpg
END:VCARD

I have tried after removing white space which is at the starting of a new line of image URL, but it does not work.

from ez-vcard.

mangstadt avatar mangstadt commented on June 29, 2024

I have tried after removing white space which is at the starting of a new line of image URL, but it does not work.

Do not remove that whitespace. It indicates that the line is folded.

from ez-vcard.

rajp6265 avatar rajp6265 commented on June 29, 2024

Hi,
With library-generated VCF data, the image could not be seen after importing vcf file.
is that anything wrong with the generated data?

from ez-vcard.

mangstadt avatar mangstadt commented on June 29, 2024

Does the photo URL return an image file or does it open a web page? If it opens a web page, then that is probably why you are having trouble.

Assuming the URL is correct, I don't see anything wrong with the vCard you emailed me! :(

from ez-vcard.

rajp6265 avatar rajp6265 commented on June 29, 2024

Yeah, I am digging into it and will let you know if I find any resolution.
Thank you for your time :)

from ez-vcard.

Maxim-Mazurok avatar Maxim-Mazurok commented on June 29, 2024

The images might be too big.
I'm using 320x320 base64-encoded JPEG, which is 10.74 KB in size

from ez-vcard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.