Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How to get image metadata from localstate files in a UWP app?

$
0
0

In my app.UWP I have files with pictures in Localstate. I need to read the DataTaken from these files.
For the same question for pictures on OneDrive I use:

files = await graphClient.Me.Drive.Root.ItemWithPath(myPath).Children.Request().GetAsync();
string x = files[i].Photo.TakenDateTime.ToString();

This works perfect.
For the files in LocalState I tried several things without success:

System.Drawing.Image image = new Bitmap(file);
System.Drawing.Image img = System.Drawing.Image.FromFile(file);
var bitmap = Bitmap.FromFile(file);

All gave 'Operation is not supported on this platform.'

How to get the image metadata ?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>