i want to create a TIFF image with some extra tags. I am using JAI (Java Advanced Imaging) for this. i want to make the tiff image with 15 new tags. the code that i have written it successfully makes the tiff image with 9 tags but not working with 15 tags. the code doesn't gives any compile time or run time Exception, but when i try to read this new tiff file then for 6 tags (out off 15) it throws Null Pointer Exception indicating that no such tag exist. 
<br>Can anyone give me some sample code showing how can extra tags be added while creating a tiff image.