I need to get IRandomAccessStream to a file without a picker.
However, I’m stuck with IStorageFile or IRandomAccessStreamReference and can’t find a way to get IRandomAccessStream from either of those.
I write the code with C++ (no /ZW), but I don’t think it matters in this case.
Please help,
Moshe
I managed to do what I wanted using OpenReadAsync of StorageFile. But this involves 2 async calls and is cumbersome. I wonder if there is a shorter and a more elegant way. The relevant sample code below: