Hi! I have a big problem, i wrote a desktop application to upload image on
Picasa with C#, but it have exception "Execution of authentication request
returned unexpected result: 404", my account exactly. I don't know, i can
access with my accout?
My code ( From
https://developers.google.com/picasa-web/docs/1.0/developers_guide_dotnet)
PicasaService service = new PicasaService("bm-piscas-1076 ");
service.setUserCredentials(txt_Users.Text, txt_Pass.Text);
AlbumEntry newEntry = new AlbumEntry();
newEntry.Title.Text = txt_AlbumName.Text;
newEntry.Summary.Text = "This is an album";
AlbumAccessor ac = new AlbumAccessor(newEntry);
//set to "private" for a private album
ac.Access = "public";
Uri feedUri = new
Uri(PicasaQuery.CreatePicasaUri(txt_Users.Text));
PicasaEntry createdEntry =
(PicasaEntry)service.Insert(feedUri, newEntry);
foreach (string fs in openFile.FileNames)
{
Uri postUri = new
Uri(PicasaQuery.CreatePicasaUri(txt_Users.Text,
createdEntry.Id.ToString()));
System.IO.FileInfo fileInfo = new
System.IO.FileInfo(fs);
System.IO.FileStream fileStream = fileInfo.OpenRead();
PicasaEntry entry =
(PicasaEntry)service.Insert(postUri, fileStream, "image/jpeg", fs);
fileStream.Close();
}
Thankyou!
--
You received this message because you are subscribed to the Google Groups
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/d/optout.