This project has moved and is read-only. For the latest updates, please go here.

FlickrNET sdk doesn't upload image in WinRT

Topics: Developer Forum
Aug 15, 2013 at 11:26 AM
I'm trying upload a image choosed by the user. I already have the Access Token and I just call UploadPictureAsync from Flickr class and nothing happen... No exception or image updated!!
FileOpenPicker openPicker = new FileOpenPicker();
    openPicker.ViewMode = PickerViewMode.Thumbnail;
    openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
    StorageFile file = await openPicker.PickSingleFileAsync();

    using (Stream fileStream = await file.OpenStreamForReadAsync())
        Flickr flickr = new Flickr(consumerKey, oauthTokenSecret, oauthToken);
            flickr.UploadPictureAsync(fileStream, "Picture", "Upload Test", "Testing FlickrNET", "", false, false, false, ContentType.Photo, SafetyLevel.None, HiddenFromSearch.Hidden,
              x =>
                    if (x.HasError)
                         Debug.WriteLine("Uploaded Sucessfully");
        catch (Exception ex)
Sep 13, 2013 at 10:48 PM
I've created a new repository for an experimental release of FlickrNet library, amongst other things for Windows 8.

Check it out here:

I've just checked in Upload support using async/await. Let me know how it goes.