Remix.run Logo
JKCalhoun 21 days ago

Not necessarily a PDF attachment?

Someone who made some progress on one Base64 attachment got some XMP metadata that suggested a photo from an iPhone. Now I don't know if that photo was itself embedded in a PDF, but perhaps getting at least the first few hundred bytes decoded (even if it had to be done manually) would hint at the file-type of the attachment. Then you could run your tests for file fidelity.

swsieber 21 days ago | parent [-]

I'd say 99% of the time, the first 10 bytes would be enough to know the file type.