IsolatedStorage causes Memory to run out
问题 hey. I'm reading an image from Isolated Storage when the user clicks on an item like this: using (IsolatedStorageFile currentIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication()) { using (var img = currentIsolatedStorage.OpenFile(fileName, FileMode.Open)) { byte[] buffer = new byte[img.Length]; imgStream = new MemoryStream(buffer); //read the imagestream into the byte array int read; while ((read = img.Read(buffer, 0, buffer.Length)) > 0) { img.Write(buffer, 0, read); } img