I created an UWP project, where I store a file in the cache directory:
string writeFilePath = Path.Combine(ApplicationData.Current.LocalCacheFolder.Path, "test.jpg");
await Task.Run(() => File.WriteAllBytes(writeFilePath, image));
Now I want to view the saved image, but I have no access to it. How do I access it from the simulator or directly on the device (Windows 10 Mobile phone)? Perhaps one could copy the file from the device to the local PC?
I tried the IsolatedStorageExplorer
, but I only get the following devices:
0 Device
1 Emulator 8.1 WVGA 4 inch 512MB(DE)
2 Emulator 8.1 WVGA 4 inch(DE)
3 Emulator 8.1 WXGA 4.5 inch(DE)
4 Emulator 8.1 720P 4.7 inch(DE)
5 Emulator 8.1 1080P 5.5 inch(DE)
6 Emulator 8.1 1080P 6 inch(DE)
Which one should I take? I'm running the app on Local Machine
, but there is no entry for that. Furthermore I tried Device
(it should be the Windows Mobile 10 device imho), but I only get an empty ApplicationInsights
folder with the following command:
ISETool.exe ts deviceindex:0 0278a454-54cc-48fc-b709-93fbaabf2337 C:Data
How can I directly access the files/folders from the local storage?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…