Hi, I'm working on a program to extract Exif data from images.
To extract the data from bits into human readable form, I use various helper functions that help me "decode" the bits. For example, to get
LONG datatype, I use the following:
Code:
Private Function GetLong(ByVal bits As Byte()) As Long
Try
Return CType(BitConverter.ToInt32(bits, 0), Long)
Catch ex As Exception
Return 0L
End Try
End Function
Things are fine for the other datatypes EXCEPT the UNDEFINED datatype recorded in the Exif data.
Anyone can teach me how to handle the UNDEFINED datatype?
I'm using
VB.NET 2003.
Thanks!
Scripts82