Thanks for this. I was looking for something similar to read metadata in images