The first time I try to get a thumbnail from a SkyDrive jpg file, nothing is returned.
It seems as if the Await when getting the file does not really fully Await before I try to get the thumbnail. Before trying to get the thumbnail file.IsAvailable returns true, but the file attributes of the jpg show: Archive Or LocallyIncomplete {544}.
The file is in a folder marked "available online-only" (of course I'm online). I'm using a local path in an Async method.
The thumbnail is returned after I restart the app and run the code again.
So far this occurs only when using Windows 8.1 RT on Surface RT. I tested and have not had this problem on Windows 8.1 Pro.
------------------------------------------------
Dim folderPath = "C:\Users\USER_NAME\SkyDrive\myfolder"
Dim folder = Await StorageFolder.GetFolderFromPathAsync(folderPath)
Dim file = Await folder.GetFileAsync("photo.jpg")
At this point, file.IsAvailable returns true. The following statement returns nothing.
Dim tn = Await file.GetThumbnailAsync(ThumbnailMode.ListView)
musical9