If you open a *.gif file with notepad the file starts with GIF89
but for the *.jpeg files the first characters aren't something like GIF89
How can I detect that my file is *.jpeg with it's file first characters?
If you open a *.gif file with notepad the file starts with GIF89
but for the *.jpeg files the first characters aren't something like GIF89
How can I detect that my file is *.jpeg with it's file first characters?
According to The JPEG File Interchange Format:
0xFFE0
"JFIF"
(including the null-terminator)