简体   繁体   中英

Path to image from iOS Gallery Xamarin

I was following this tutorial http://developer.xamarin.com/recipes/ios/media/video_and_photos/choose_a_photo_from_the_gallery/ and I can get the path for a video just by doing

mediaURL.Path

but with an image it returns something like

"assets-library://asset/asset.JPG?id=2A456415-B1AE-414A-9795-A0625K768EBD&ext=JPG"

and I can not use it to upload to my server because using FileInfo("imageLocaltion") will not find the file.

So with urls like the above how can I access the "real" file path?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM