exception - UWP - How to read .jpg from Desktop inside of app -


the functionality needing app if user copies image file (for example, .jpg file in desktop folder), need extract file clipboard , display in app.

i can extract storage file clipboard, , file path. when try read file path bitmapimage, received system.unauthorizedaccessexception error, because image not located in app's folder.

it sounds trying open file path rather directly using storagefile returned file picker.

your app doesn't have direct access of file system (including downloads directories) , can access such files indirectly via file system broker. storagefile object works broker open files use had authorized , provides stream of files contents app read , write to.

you can use xamarin.plugin.filepicker or filepicker-plugin-for-xamarin-and-windows .


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -