High Resolution Image Load - OutOfMemory

Apr 7, 2014 at 10:05 AM
i must read in my Photo Viewer high resolution image(20 MP - 41MP). The image are into IsolatedStorage

if i use this code

using (var store = IsolatedStorageFile.GetUserStoreForApplication())
        {
            using (var stream = store.OpenFile(this.location, FileMode.Open))
            {
                var bitmapImage = new BitmapImage();
                bitmapImage.SetSource(stream);
                bitmapImage.CreateOptions = BitmapCreateOptions.None;
                var bmp = new WriteableBitmap((BitmapSource)bitmapImage);
                bitmapImage.UriSource = (Uri)null;
                return bmp;
            }
        }
receive OutOfMemory

How to resolve?
Coordinator
Apr 7, 2014 at 10:18 AM
That's just too much to load into memory at once.
Checkout the Nokia Imaging SDK about how you can load such huge images.