|
[C#]
XImageLoadOptions loadOptions = new XImageLoadOptions();
loadOptions.ReadExif = true;
XImage image = XImage.FromFile(Server.MapPath("rez/myexif.jpg"), loadOptions);
if (image.Exif != null) {
string xml = image.Exif.Xml;
Response.Write(xml);
}
[Visual Basic]
Dim loadOptions As New XImageLoadOptions()
loadOptions.ReadExif = True
Dim image As XImage = XImage.FromFile(Server.MapPath("rez/myexif.jpg"), loadOptions)
If image.Exif IsNot Nothing Then
Dim xml As String = image.Exif.Xml
Response.Write(xml)
End If
This example illustrates how to get and display an xml
representation of the Exif data.
|