1

I am using google oauth 2.0 playground API, its giving ma the result of contact's but the problem is its not giving the full image name with extension as well.

below result I am getting

    <link rel="http://schemas.google.com/contacts/2008/rel#photo" type="image/*" href="https://www.google.com/m8/feeds/photos/media/xxxx@test.com/2d4aaf09b20bb7"/>
  <link rel="self" type="application/atom+xml" href="https://www.google.com/m8/feeds/contacts/xxxx@test.com/full/2d4aaf09b20bb7"/>
  <link rel="edit" type="application/atom+xml" href="https://www.google.com/m8/feeds/contacts/xxxx@test.com/full/2d4aaf09b20bb7"/>

what I have to do for getting image src with extension ?

SagarPPanchal
  • 9,839
  • 6
  • 34
  • 62

1 Answers1

0

There is no "filename" or "extension". When you send an authenticated request to the URL you will get an HTTP response with a content-type in the header telling what kind of format it is along with the photo bytes.

Blake O'Hare
  • 1,863
  • 12
  • 16