string file = "/data/data/Online_Mix.Online_Mix/files/Testing.jpg"; string username = _userName; PicasaService oService = new PicasaService("web-application-study"); oService.setUserCredentials(username,_password); System.IO.FileInfo fileInfo = new System.IO.FileInfo(file); System.IO.FileStream fileStream = fileInfo.OpenRead(); Uri postUri = new Uri(PicasaQuery.CreatePicasaUri(_userId, "default")); PicasaEntry entry = (PicasaEntry)oService.Insert(postUri, fileStream, "Image/jpg", file); PhotoAccessor pa = new PhotoAccessor(entry); fileStream.Close(); HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://www.google.com/accounts/CLientLogin"); request.ContentType = "application/x-www-form-urlencoded"; request.Method = "POST"; request.BeginGetRequestStream(new AsyncCallback(GetRequestStreamCallbackItem), request); auto.WaitOne();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)