We've covered issues with "Other Storage" fairly extensively in the past, but now we're taking a quick look at a find by Kévin Gosse in his Windows Phone app Imageboard Browser. The app has been causing problems with users as sometimes hundreds of megabytes of data would be stored and taking up valuable space, but this isn't related to other storage so what's going on?
Gosse managed to track the issue to the methods MediaLibrary.SavePicture and MediaLibrary.SavePictureToCameraRoll. Both are utilised when saving images to a Windows Phone's pictures hub. It's reported that each and every time they're used, a copy of said image being saved is also stored in isolated storage.
After creating a small app to test out his theory, Gosse confirms that when an image is downloaded and saved locally, a copy can be detected in isolated storage. It's a bug that can be easily overlooked. Here are more findings:
- Gosse could not reproduce the bug on Windows Phone 7; only Windows Phone 8 appears to be affected.
- Various hardware (Lumia 822, Lumia 920, and the emulator) was tested. It's not device-specific.
- The bug occurs only when saving JPG pictures. Nothing is stored on the isolated storage when saving a PNG picture.
- If it's anticipated and a file is created beforehand on the isolated storage with the same name, it will be overwritten. If it's locked by keeping the stream open, the MediaLibrary.SavePicture method throws an exception.
- The MediaLibrary.SavePicture has an overload that expect a byte array rather than a stream. It suffers from the same bug.
- The name of the file created in the isolated storage is the same name as the one provided to the MediaLibrary.SavePicture, with “.jpg” appended to the end (even if the name already contained “.jpg”), and dots ‘.’ replaced by underscores ‘_’. Knowing this, it’s possible to write code to automatically delete the file.
- Using Nokia’s storage tool, those files are reported in the application’s dedicated storage. Not in the temp files or the “others” storage.
Note the second-to-last point as Gosse states it's easy to workaround. This can be achieved by automatically removing the temporary file that's created in isolated storage. This could cause serious issues with those who are on low-end hardware and only have limited amounts of internal storage. Something to keep an eye on, developers.
Source: Codes Sources; thanks, Jorba, for the tip!
The Razer Tomahawk is small in stature, but mighty in power
Razer has a new gaming PC on the scene, and this time it's a compact desktop. The Razer Tomahawk Gaming Desktop uses a variation of the Tomahawk case to bring a modular, powerful PC that's designed to take up very little of your desk space.
Review: Razer's Hammerhead True Wireless Pro deliver THX and ANC for gamers
If you're looking for really good wireless earbuds and also happen to like mobile gaming, the new Razer Hammerhead True Wireless Pro is what you need. Featuring THX audio, ANC, low-latency streaming, and excellent comfort, there's a lot to like. Here's what we think of them after a week of using them with iOS and Android.
Found out when Cyberpunk 2077 releases in your area on PC and console
Cyberpunk 2077 is really almost here, and CD Projekt RED has revealed the exact release times for local areas on PC and console, as well as pre-load information.
Here are the best Cyberpunk 2077 collectibles and merch
Cyberpunk 2077 is a huge game, and is accompanied by a massive pool of collectibles, accessories, and merch for everyone from hardcore collectors to dabbling fans. Here are the best collectibles and merch for Cyberpunk 2077.