Click to See Complete Forum and Search --> : Get the info out of jpg


bigmac
November 28th, 2002, 03:59 PM
Is it possible to get the meta data ot of a jpg file (date, size etc)? Can anyone tell me if it's possible and maybe help me out with a site that explains this.

thanks
/martin

Athley
November 29th, 2002, 02:08 AM
It's possible to get the FileInfo from a file, I'm not sure what you mean by "metadata out of a jpg file", but maybe this helps....

Dim f As New System.IO.FileInfo("D:\picture.jpg")
MsgBox(f.CreationTime)
MsgBox(f.Length)

/Leyan

bigmac
November 29th, 2002, 04:59 AM
Sorry if I explained it badly, my english is quite poor. What I ment was that i need the info that is written within the file...exif data I think it's called? In digital pictures it stors data like what kind of camera that took the picture and what date it was taken.

/martin

Athley
November 29th, 2002, 05:29 AM
aha ok. Well, as long as you know wich bytes that have the info you can read just those bytes from the file.

Me and WillemM posted some examples in the thread below about getting the ID3 tag from a mp3 file, nothing different here but the actual bytes to read.

Thread (http://www.codeguru.com/forum/showthread.php?s=&threadid=217462)

/Leyan