Hello Andi,

Unfortunately, there is no other way to retrieve a contact's photo. Your
application would have to retrieve the image and store it somewhere in your
server in order to be able to display it on your webpage as it is not
possible to pass an http header in a <img> tag.

Best,
Alain

On Fri, Jul 29, 2011 at 9:52 AM, Andi <[email protected]> wrote:

> I use JavaScript to get the photo links and want to display the images in a
> web page. The code creates <img> elements with src attributes dynamically.
> When the browser tries to request the image resources, it gets a 401 status
> response as well, because the authorization header is missing. How can I set
> the required header for the img requests? Is this even possible? Is there an
> alternative way of fetching contact photos using the JS implementation of
> the Google Contacts Data API and integrating them into a web application?
>
> Thanks a lot for your answers.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://code.google.com/apis/contacts/community/forum.html
>



-- 
Alain Vongsouvanh

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html

Reply via email to