This project is read-only.

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.CreateOptions = BitmapCreateOptions.None;
                var bmp = new WriteableBitmap((BitmapSource)bitmapImage);
                bitmapImage.UriSource = (Uri)null;
                return bmp;
receive OutOfMemory

How to resolve?
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.