locked
"ms-appdata:///temp" usage issue

    Question

  • I have some images stored in TempState/Cache folder and trying to load them into BitmapImage. 
    My code looks like :

    String^ uri = "ms-appdata://////temp//Cache//"+m_name;
    m_image = ref new BitmapImage(ref new Uri( uri));
    m_image->ImageOpened += ref new Windows::UI::Xaml::RoutedEventHandler(this, &TCover::OnLoadComplete);
    m_image->ImageFailed += ref new Windows::UI::Xaml::ExceptionRoutedEventHandler(this, &TCover::OnLoadFailed);

    but even when file is exist in destination folder i'm getting E_NETWORK_ERROR (captured in OnLoadFailed event) and i cannot get it to work.

    Friday, June 08, 2012 3:53 PM

Answers

All replies