I struggle to upload photos to my Google contacts using the contacts
API.
When uploading the image from my GAE app to Google contacts I get:
com.google.gdata.util.InvalidEntryException: OK
Invalid image file
at
com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse
(HttpGDataRequest.java:557)
at
com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse
(GoogleGDataRequest.java:543)
at
com.google.gdata.client.http.HttpGDataRequest.checkResponse
(HttpGDataRequest.java:535)
at com.google.gdata.client.http.HttpGDataRequest.execute
(HttpGDataRequest.java:514)
at com.google.gdata.client.http.GoogleGDataRequest.execute
(GoogleGDataRequest.java:515)
I doublechecked that it works fine with identical code in my local
environment.
I experienced before that GAE for Java corrupts streams because of
messed up character encoding. When I wanted to pass serialized
objects
from GAE to another host I had to do some weird Base64-encoding on
both sides to workaround the encoding bug.
But as now Google contacts server is my endpoint I'm stuck!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Contacts API" 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://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---