AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2021.08.26 17:40 "[Tiff] Setting/Getting Custom Metadata", by Reynaldo FariasZorrilla
2021.08.26 17:59 "Re: [Tiff] Setting/Getting Custom Metadata", by Even Rouault
2021.08.26 18:08 "Re: [Tiff] Setting/Getting Custom Metadata", by Rob Tillaart
2021.08.26 23:42 "Re: [Tiff] Setting/Getting Custom Metadata", by Reynaldo FariasZorrilla
2021.08.26 23:45 "Re: [Tiff] Setting/Getting Custom Metadata", by Even Rouault
2021.08.27 00:09 "Re: [Tiff] Setting/Getting Custom Metadata", by Reynaldo FariasZorrilla
2021.08.27 00:11 "Re: [Tiff] Setting/Getting Custom Metadata", by Reynaldo FariasZorrilla
2021.08.27 06:11 "Re: [Tiff] Setting/Getting Custom Metadata", by Roger Leigh

2021.08.27 06:11 "Re: [Tiff] Setting/Getting Custom Metadata", by Roger Leigh

Hi Reynaldo,

You need to get the read count for the field with TIFFFFieldReadCount(), create a buffer of that length, then pass a pointer to that buffer. You’re just passing a null pointer, so it has nowhere to store the contents of the string.

Kind regards,

Roger