Hi

I got an errro at loading photos from album,
I listed my code :

  string albumName = (string)Session["AlbumName"];

        string p = "[EMAIL PROTECTED]";
        string pwd ="xyz";

        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));
        PhotoQuery PQuery = new
PhotoQuery(PicasaQuery.CreatePicasaUri("default",albumName));
        PQuery.NumberToRetrieve = 10;
        PicasaFeed feed = myService.Query(PQuery);  // I got error on
this line : Remote server returen erro 404 not found

        foreach (PicasaEntry entry in feed.Entries)
        {
            Response.Write("<br> " +
entry.Media.Content.Attributes["url"].ToString() + "<br>");

            HtmlTableRow tr = new HtmlTableRow();
            HtmlTableCell td = new HtmlTableCell();
            Image img = new Image();

            TableCell td1 = new TableCell();
            TableRow tr1 = new TableRow();
            Table tbl = new Table();

            img.ImageUrl =
entry.Media.Content.Attributes["url"].ToString();
            td1.Controls.Add(img);
            tr1.Controls.Add(td1);
            tbl.Controls.Add(tr1);

            Panel1.Controls.Add(tbl);
        }

On Sep 26, 2:20 pm, Michele Gatti <[EMAIL PROTECTED]> wrote:
> I risolved my problem.......thanks a lot
>
> On 23 Set, 20:07, "Jeff Fisher (Google)" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Hi,
>
> > What member are you accessing to get at the image URL? If you're
> > looking at the <media:thumbnail> and not the <media:content>, then
> > that could be your problem.
>
> > Cheers,
> > -Jeff
>
> > On Sep 23, 2:27 am, Michele Gatti <[EMAIL PROTECTED]> wrote:
>
> > > I resolve in part of my problem in this way:
>
> > >  string photoURL =
> > >         string.Format("http://picasaweb.google.com/data/entry/api/user/
> > > {0}/album/{1}/photoid/{2}", myWebAlbum.Credentials.Username,
> > > "Softair", this.idFoto);
> > >  PicasaEntry _photo = (PicasaEntry)myWebAlbum.Get(photoURL);
>
> > > Now i received the photo but is no largest photo!!!
>
> > > Why???
>
> > > Thanks
>
> > > On Sep 22, 7:42 pm, "Jeff Fisher (Google)" <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > Hi,
>
> > > > Is the name of your album really "Album" ? It would help if you
> > > > actually posted the exception you were receiving too.
>
> > > > Cheers,
> > > > -Jeff
>
> > > > On Sep 20, 3:42 am, Michele Gatti <[EMAIL PROTECTED]> wrote:
>
> > > > > Hi, i need hel to load a selected photo i use thi command :
> > > > > "PhotoQuery query = new
> > > > > PhotoQuery(PicasaQuery.CreatePicasaUri(myWebAlbum.Credentials.Username,
> > > > > "Album",idPhoto));"
>
> > > > > but i've recived a exception?
>
> > > > > Why?- 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 Google-Picasa-Data-API@googlegroups.com
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