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 ?