-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add raw value to Tag #601
Comments
getObject should give you that, no? metadata-extractor/Source/com/drew/metadata/Directory.java Lines 1090 to 1101 in 5754a0d
That API comment isn't great, looking at it again. |
That is kind of what I was looking for, I will admit it was hard to find at first. Maybe improving the documentation would be a good first step. One addition for the raw value would be to add support for retrieving the raw bytes instead of a class-specific object. |
We don't always hold on to the raw bytes for every tag. That would increase memory consumption. Could you explain your use case? |
In my case I would like to have the raw bytes because for a forensic reporting tool they are necessary for re-parsing from third party tools without including the original file. So basically in the report include both human-readable formats and raw formats. |
There isn't always a 1:1 mapping between tag and byte(s). It'd be helpful to see a concrete example, with specific tags.
Do you mean you need to extract only the metadata, persist it somewhere, then re-parse it later? Depending upon the format, you can do that. For example, take a look at |
It would make sense to add the raw value to the class Tag on top of the already existing human-readable
description
, the same way that we have thetagType
field which is technically the raw value of the human-readabletagName
field.The text was updated successfully, but these errors were encountered: