Reputation: 3274
I'm creating an asp.net web application in C# to convert a bunch of .xps
files to .pdf
and I want to validate the input file to be converted by its content type instead of the file extension for security reasons.
Upvotes: 4
Views: 5275
Reputation: 19401
According to this resource it will be application/vnd.ms-xpsdocument
or application/oxps
depending on the file
Upvotes: 4
Reputation: 1276
According to this File Signatures Table the signature of XPS files is:
50 4B 03 04
Upvotes: 0