I am currently downloading images that have been stored as a base 64 string on my database. The issue is that I need to also get the images EXIF data to determine the images orientation. I am wondering if their is a way to get the EXIF data.
The following is my c# code.
busyMessage.Text = "Loading Tools";
InvToolSync toolSync = new InvToolSync();
toolData = await toolSync.GetTools(viewModel.CompanyData.company_id);
foreach (Tool tool in toolData)
{
if (tool.archived == "True")
continue;
var lt = new ListTemplate(tool.id, tool.name, ImageSource.FromFile("default_image.png"));
if (!string.IsNullOrEmpty(tool.photos))
if (tool.photos.Length % 4 == 0)
lt.SourceImage = ImageSource.FromStream(() => new MemoryStream(Convert.FromBase64String(tool.photos)));
listDisplay.Add(lt);
}
The above code loads the the data required to populate a list item and as you can see I am able I get the image's data url with this code tool.photos
. But I cannot seem to figure out how to get the EXIF data. Is their a plugin or some c# code that could get this from a base64 string or even a the byte array?
Thanks.