if (photoDomainDataSource.DataView.Count > 0) { Photo p = (Photo)photoDomainDataSource.DataView[0]; MemoryStream ms = new MemoryStream(p.FileBlob, 0, p.FileBlob.Length); BitmapImage bmp = new BitmapImage(); bmp.SetSource(ms); fileBlobImage.Source = bmp; }
{System.Exception: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.BitmapSource_SetSource(BitmapSource bitmapSource, CValue& byteStream) at System.Windows.Media.Imaging.BitmapSource.SetSourceInternal(Stream streamSource) at System.Windows.Media.Imaging.BitmapImage.SetSourceInternal(Stream streamSource) at System.Windows.Media.Imaging.BitmapSource.SetSource(Stream streamSource) at Nomad.Views.PhotoControl.photoDomainDataSource_LoadedData(Object sender, LoadedDataEventArgs e)} Data: {System.Collections.ListDictionaryInternal} InnerException: null Message: "Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))" StackTrace: " at MS.Internal.XcpImports.CheckHResult(UInt32 hr)\r\n at MS.Internal.XcpImports.BitmapSource_SetSource(BitmapSource bitmapSource, CValue& byteStream)\r\n at System.Windows.Media.Imaging.BitmapSource.SetSourceInternal(Stream streamSource)\r\n at System.Windows.Media.Imaging.BitmapImage.SetSourceInternal(Stream streamSource)\r\n at System.Windows.Media.Imaging.BitmapSource.SetSource(Stream streamSource)\r\n at Nomad.Views.PhotoControl.photoDomainDataSource_LoadedData(Object sender, LoadedDataEventArgs e)"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)