ERROR flickr method uploadPictureAsync

Topics: Developer Forum, Project Management Forum, User Forum
May 24, 2012 at 11:41 AM
Edited May 24, 2012 at 12:10 PM

i am developing ASP.NET website with C# code, myself use that below code is that correct

string photoUploaded = flickr.UploadPicture(file.InputStream, file.FileName.ToString(), "nature", "BMI", "funny", true, true, true, ContentTypeSearch.PhotosOnly, SafetyLevel.None, HiddenFromSearch.None, r =>
                {
                    Dispatcher.BeginInvoke(() =>
                    {
                        if (r.HasError)
                        {
                            MessageBox.Show(r.Error.Message);
                        }
                        else
                        {
                            UploadProgressBar.Visibility = System.Windows.Visibility.Collapsed;
                            MessageBox.Show("Uploaded Sucessfully");
                            NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
                        }
                    });
                });

 

if i correct means, i have error for below one for upload method us as a uploadPictureAsync

CS1502: The best overloaded method match for 'FlickrNet.Flickr.UploadPictureAsync(System.IO.Stream, string, string, string, string, bool, bool, bool, FlickrNet.ContentType, FlickrNet.SafetyLevel, FlickrNet.HiddenFromSearch, System.Action<FlickrNet.FlickrResult<string>>)' has some invalid arguments

 

this is code
 
string photoUploaded = flickr.UploadPictureAsync(file.InputStream.Position,
"Fine", "nature", "BMI", "funny", true, true, true, ContentTypeSearch.PhotosOnly,
SafetyLevel.Safe, HiddenFromSearch.None,function());


what should i add in action callback
string photoUploaded = flickr.UploadPictureAsync(file.InputStream.Position, "Fine",
"nature", "BMI", "funny", true, true, true, ContentTypeSearch.PhotosOnly,
SafetyLevel.Safe, HiddenFromSearch.None,Action<FlickrNet.FlickrResult<>> );

Coordinator
May 24, 2012 at 3:36 PM

Please don't double post to the forum, it is considered rude.

Jun 12, 2012 at 6:57 AM

sorry :( can you help this error,

Coordinator
Jun 12, 2012 at 10:12 AM

This is the other reason you shouldn't double post, as I already answered this question here but you obviously missed it: http://flickrnet.codeplex.com/discussions/237186

Sam