sukumar
sukumar

Reputation: 143

Determine MIME type of a file while opening in browser using c++ and browser helper object

when i click a link on browser which opens a file (. PDFs ,.doc,....) how to find the mime type of that file which is getting opened using browser helper object? i am new please help me thanks in advance.

Upvotes: 0

Views: 211

Answers (1)

Sheng Jiang 蒋晟
Sheng Jiang 蒋晟

Reputation: 15281

You can install a PassThru App and read the HTTP header. Then you can parse the header text to get the MIME type, and good luck with that.

Upvotes: 1

Related Questions