locked
I have one question about Windows::UI::Xaml::Media::Imaging::BitmapImage::UriSource property

    Question

  • Hi all,

    I have one question about Windows::UI::Xaml::Media::Imaging::BitmapImage::UriSource property

    I am using REST API to control Skydrive.
    For Skydrive file's thumbnail, I set the thumbnail Uri to BitmapImage::UriSource property.
    And it's data binding to ListView

    When the file name is using English language. It's fine
    When the file name is using Traditional Chinese. It will show exception.
    This exception is occur when the listview will show the BitmapImage

    EX:
    File name : 怪.mp4
    The thumbnail Uri will change to "picture":"http://storage.live.com/......../%E6%80%AA.mp4:Thumbnail/%E6%80%AA.jpg"
    And set it to BitmapImage's UriSource property

    String^ path = "http://storage.live.com/......../%E6%80%AA.mp4:Thumbnail/%E6%80%AA.jpg";
    Windows::UI::Xaml::Media::Imaging::BitmapImage^ FileThumbnail = ref new Windows::UI::Xaml::Media::Imaging::BitmapImage();
    FileThumbnail ->UriSource = ref new Uri(path);

    Thanks

    Friday, June 8, 2012 12:05 PM

All replies

  • What is the exception? Can you access that URI in other ways? Can you successfully download the file?

    --Rob

    Saturday, June 9, 2012 5:18 AM
    Owner
  • Hi Rob,

    I can access the URI by browser(IE), and I can download the thumbnail file.

    Exception:
    The first time is show :
    "SkyPadCpp.exe has triggered a breakpoint. If there is a handler for this exception, the program may be safely continued."

    After click the Continue button,
    it will show :
    "Unhandled exception at 0x666F978E (Windows.UI.Xaml.dll) in SkyPadCpp.exe: 0xC0000602:  A fail fast exception occurred. Exception handlers will not be invoked and the process will be terminated immediately.

    Thanks

    Monday, June 11, 2012 4:26 AM
  • Hi Rob,

    Sample code:

    BitmapImage^ bimg = ref new BitmapImage();
    Uri^ testLink = ref new Uri("http://storage.live.com/....../%E6%80%AA.mp4:Thumbnail/%E6%80%AA.jpg");
    bimg->UriSource = testLink;
    x_image->Source = bimg;

    The x_image is image control
    The testLink value is a skydrive file's thumbnail uri
    When the file name is using English language. It's fine
    When the file name is using Traditional Chinese. It will show exception when UI will display.
    ex: File name : 怪.mp4

    Note:
    This exception is show when the UI will display this image.(Maybe)
    Because I don't know where can catch this exception. It should be XAML problem

    Thanks


    • Edited by woody tk Monday, June 11, 2012 8:27 AM Add information
    Monday, June 11, 2012 8:20 AM
  • Hi all,

    I can't reproduce this issue in release preview build
    This issue have fix

    Thanks

    Tuesday, June 26, 2012 4:25 AM