7bit ASCII out of 4 byte value
I'm currently writing a program that reads EXIF information out of NEF files (Nikon DSLR Raw format). It's based on the TIFF 6.0 definition.
My probleme is that in the documentation of TIFF it says that the Value of a IFD Entry can be a ASCII value BUT it's only 7bit long since the last bit is NUL. The Value block is 4 byte long and contains several characters at once. Now i tried this:
Count is the number of characters
unsigned char Text;
for (int a = 0; a < Count; a++)
fread(&Text[a], 1, 1, pFile);
cout << "Value: " << Text << endl;
pFile is the File i've opened
When i run the programm it prints nothing as Value so the output is
My question is how do i get the characters out of the binary strip?
Thanks in advance