C# 如何将图像上载到Picasa网络相册

C# 如何将图像上载到Picasa网络相册,c#,xamarin.android,C#,Xamarin.android,有谁能帮我把图片上传到Picasa网络相册上吗。我的代码如下 string file = "/data/data/Online_Mix.Online_Mix/files/Testing.jpg"; string username = _userName; PicasaService oService = new PicasaService("web-application-study"); oService.setUserCred

有谁能帮我把图片上传到Picasa网络相册上吗。我的代码如下

        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();

在调试时,它会在PicasaEntry处显示异常“身份验证请求的执行返回意外结果:404”。请任何人帮我解决这个问题。…

不推荐的Google数据方法。您需要迁移以获得新的API。

这是一个答案还是一个注释?