ExifTool Forum

General => Metadata => Topic started by: banana123 on December 31, 2023, 04:15:15 AM

Title: writing binary data to trailer
Post by: banana123 on December 31, 2023, 04:15:15 AM
hi guys,
been trying to write binary data to the trailer tag ("Trailer:Trailer"), but it seems the exiftool saves it as str instead of bytes (b"b'\\x00\\x00\\.....'").
Is there any way to write bytes data to trailer?
thanks!! <3
Title: Re: problems writing binary data to an existing tag
Post by: banana123 on December 31, 2023, 04:36:25 AM
SG Edit: duplicated posts merged

Quote from: StarGeek on August 06, 2020, 11:50:29 AMIf you check the MPF tag page (https://exiftool.org/TagNames/MPF.html), you'll see that exiftool doesn't write any of those tags.

is there any way to write binary data to an existing exif tag?
Title: Re: writing binary data to trailer
Post by: Phil Harvey on December 31, 2023, 08:14:32 AM
What command were you using?  Generally, the best way to write binary data is directly from a file:

exiftool "-trailer<=binfile.dat" FILE

- Phil