Hi All,

I am uploading a photo with metadata in json format  instead of xml.
Json is generated using google-gson library. i tried setting content
type of json text to "application/atom+xml" as well as "application/
atom+json" both. when i make httppost request, it gives me 400 Bad
Request response.
Surprisingly, "application/atom+xml" works fine with xml text given as
follows:

<entry xmlns='http://www.w3.org/2005/Atom'>
  <title>plz-to-love-realcat.jpg</title>
  <summary>Real cat wants attention too.</summary>
  <category scheme="http://schemas.google.com/g/2005#kind";
    term="http://schemas.google.com/photos/2007#photo"/>
</entry>


The json text is as follows:
{"encoding":"UTF-8","entry":{"category":{"scheme":"http://
schemas.google.com/g/2005#kind","term":"http://schemas.google.com/
photos/2007#photo"},"summary":{"$t":"Test photo uploaded using
myapp"},"title":{"$t":"test-photo"},"xmlns":"http://www.w3.org/2005/
Atom","xmlns$app":"http://www.w3.org/2007/app","xmlns$exif":"http://
schemas.google.com/photos/exif/2007","xmlns$gd":"http://
schemas.google.com/g/2005","xmlns$gphoto":"http://schemas.google.com/
photos/2007","xmlns$media":"http://search.yahoo.com/
mrss/"},"version":"1.0"}

I want to implement this using json only.

Please help  me to resolve this issue.
Any help is highly appreciable.

Hoping to hear from you experts.

Thanks,
Manish

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums 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-picasa-data-api?hl=en.

Reply via email to