Hi,

If you want to retrieve a single entry, do not use PhotoQuery. That is
appending the "kind=photo" parameter and messing things up. Also you
need to retrieve the entry instead of the feed.

So construct a string that looks like

"http://picasaweb.google.com/data/entry/api/user/[EMAIL PROTECTED]/albumid/
5259588107181240961/photoid/5259588559371520194"

and do your myService.Get() on that string directly. Notice that it is
"/data/entry/" instead of "/data/feed/".

Cheers,
-Jeff

On Oct 23, 10:37 pm, "Me." <[EMAIL PROTECTED]> wrote:
> HI
>
> Thank for your positive reply!
>
> I got albumid using AlbumAccessor.
>
> I have one more problem, I am not able to get image using photoid.
>
> In thig uri i am passing albumid and photoid.
>
> Actuly what i am doing, Frist i am getting all albums and then selecte
> any one album and from that album i am getting all images.
>
> i put checkbox for all images if user select any checkbox ( for
> testing purpose i am doing for one image) that image will be i show on
> web page.
>
> see my code:
>
>    PhotoQuery PQuery = new PhotoQuery();
>                 string MyQuery = "http://picasaweb.google.com/data/
> feed/api/user/";
>                 MyQuery = MyQuery + UName + "/albumid/" +
> arrAlbumId[intSelectedAlbumIndex] + "/photoid/" +
> arrSelectedPhotoId[intPhoto];
>
>                 Uri u = new Uri(MyQuery);
>
>                 PQuery.Uri = u;
>
>                 try
>                 {
>                     PicasaEntry pe =
> myService.Get(PQuery.Uri.ToString()) as PicasaEntry;
>
>                     PicasaFeed feed = myService.Query(PQuery);
> .
> .
> .
> .
>
> I am getting error:
>
> Execution of request failed:
> http://picasaweb.google.com/data/feed/api/user/[EMAIL 
> PROTECTED]/albumid/5259588107181240961/photoid/5259588559371520194?kind=photo
>
> -Me,
>
> On Oct 22, 4:21 am, "Jeff Fisher" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > You can use AlbumAccessor like in this thread:
>
> >http://groups.google.com/group/Google-Picasa-Data-API/browse_thread/t...
>
> > One of the properties is "Id".
>
> > Cheers,
> > -Jeff
>
> > On Mon, Oct 20, 2008 at 9:09 PM, Me. <[EMAIL PROTECTED]> wrote:
>
> > > HI
>
> > > I got album list.
>
> > > but my problem is how to get album id?
>
> > > On Oct 20, 10:21 pm, "Jeff Fisher" <[EMAIL PROTECTED]> wrote:
> > > > Hi,
>
> > > > Please do not keep opening new threads about the same issue. It just
> > > > clutters the forum and annoys its subscribers.
>
> > > > It sounds like the album name you are using is not valid since you are
> > > > getting a 404. If you have a space in the album name, for example, you
> > > have
> > > > to remove it. Similarly, you have to take into consideration other
> > > special
> > > > characters. What is the name of the album that is having the problem? In
> > > > general it is better to retrieve albums by their numeric ID instead of 
> > > > by
> > > > their name for this reason.
>
> > > > Cheers,
> > > > -Jeff
>
> > > > On Mon, Oct 20, 2008 at 4:55 AM, Me. <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > > Hi,
>
> > > > > I want to get Image from any peticuler selected album, but i am not
> > > > > getting it.
>
> > > > > I got error of Rmote server return error 404 not found.
>
> > > > > what should i do? my code is displayed below:
>
> > > > >        string albumName = (string)Session["AlbumName"];
>
> > > > >        string p = "[EMAIL PROTECTED]";
> > > > >        string pwd ="xx";
>
> > > > >        PicasaService myService = new PicasaService("exampleCo-
> > > > > exampleApp-1");
> > > > >        myService.setUserCredentials(p,pwd);
>
> > > > >        GAuthSubRequestFactory authFactory = new
> > > > > GAuthSubRequestFactory("lh2", "exampleCo-exampleApp-1");
> > > > >        authFactory.Token = (String)Session["token"];
>
> > > > >        myService.RequestFactory = authFactory;
>
> > > > >        /* Get photos */
>
> > > > >       PhotoQuery  PQuery = new
> > > > > PhotoQuery(PicasaQuery.CreatePicasaUri(p,albumName));
> > > > >       PQuery.NumberToRetrieve = 10;
>
> > > > >        PicasaFeed feed = myService.Query(PQuery);  // I got error at
> > > > > this step  .....
> > > > > .............- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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