5 messages in com.googlegroups.google-picasa-data-apiRe: How to upload a image using HttpU...
FromSent OnAttachments
Technofantasy25 Jan 2008 03:21 
Sven25 Jan 2008 15:22 
Technofantasy28 Jan 2008 03:56 
Sven28 Jan 2008 12:05 
Technofantasy01 Feb 2008 08:08 
Subject:Re: How to upload a image using HttpURLConnection
From:Sven (s.@google.com)
Date:01/28/2008 12:05:35 PM
List:com.googlegroups.google-picasa-data-api

I tried out the url (substituting your username) and I was able to retrieve the feed, so you're right, the problem isn't there. Can you post the actual http traffic (minus the image body or auth headers) so I can see the actual request? Both headers and body are useful.

On 28/01/2008, Technofantasy <appl@gmail.com> wrote:

Thanks Sven But I used http://picasaweb.google.com/data/feed/api/user/default/albumid/5135321478756000289 . It still doesn't work. I still get the "Bad Request 400".And this is a valid URL, I have type this URL in FireFox.

On Jan 26, 7:23 am, Sven <s.@google.com> wrote:

Your problem is here:

String dataPage = "http://picasaweb.google.com/data/feed/api/user/ myPicasa/myAlbum/5135321478756000289";

This isn't a valid URL for api access. The URL needs to be:

http://picasaweb.google.com/data/feed/api/user/default/albumid/513532... <http://picasaweb.google.com/data/feed/api/user/myPicasa/myAlbum/51353...>

Which should get you what you want.

A 400 error means that the URL entered is invalid, or the resource doesn't exist, so whenever you see one of those be sure to check your URL against the valid URLs published in our api documentation.

On 25/01/2008, Technofantasy <appl@gmail.com> wrote: