Is there any sample code to read thumbnail from Jpeg exif header?

c++, exif, jpeg, thumbnails

Solution

Unsurprisingly the library is called libexif has win32 port, and there is sample code for reading thubnail from file

Problem

I am writing application using c++, in windows. I want to get a thumbnail from jpeg, without decoding the whole image. How Can I read thumbnail from jpeg exif header? Can any one offer me a some sample code? Many thanks!

Original source