Click here to Skip to main content
15,891,033 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Technically correct but practically useless Pin
TheRealSteveJudge22-Jun-22 20:44
TheRealSteveJudge22-Jun-22 20:44 
GeneralRe: Technically correct but practically useless Pin
PIEBALDconsult20-Jun-22 17:15
mvePIEBALDconsult20-Jun-22 17:15 
GeneralWSO CCC OTD 2022-06-20 Pin
Randor 19-Jun-22 23:49
professional Randor 19-Jun-22 23:49 
GeneralRe: WSO CCC OTD 2022-06-20 Pin
OriginalGriff19-Jun-22 23:51
mveOriginalGriff19-Jun-22 23:51 
GeneralRe: WSO CCC OTD 2022-06-20 Pin
Richard MacCutchan20-Jun-22 0:03
mveRichard MacCutchan20-Jun-22 0:03 
GeneralRe: WSO CCC OTD 2022-06-20 Pin
Randor 20-Jun-22 0:05
professional Randor 20-Jun-22 0:05 
GeneralRe: WSO CCC OTD 2022-06-20 Pin
OriginalGriff20-Jun-22 0:08
mveOriginalGriff20-Jun-22 0:08 
GeneralRe: WSO CCC OTD 2022-06-20 Pin
Randor 20-Jun-22 0:34
professional Randor 20-Jun-22 0:34 
Well,

There is a Microsoft API to do MIME sniffing. It should have a 100% success rate on RIFF/WAV headers. It originated from the now dead Internet Explorer. It's exported from Urlmon.dll

FindMimeFromData function[^]

The pwzUrl parameter can be file://path/to/your/image.jpg

Your RIFF should be detected as audio/wav and JPEG files will be image/jpeg

FMFD_ENABLEMIMESNIFFING flag has to be enabled to have it read the binary file headers. Otherwise it will do 'dumb MIME sniffing' which simply looks at the file extension.
GeneralOi! Randor! Pin
OriginalGriff19-Jun-22 23:41
mveOriginalGriff19-Jun-22 23:41 
GeneralOi! Pkfox! Pin
OriginalGriff19-Jun-22 23:40
mveOriginalGriff19-Jun-22 23:40 
GeneralRe: Oi! Pkfox! Pin
pkfox20-Jun-22 0:03
professionalpkfox20-Jun-22 0:03 
GeneralOi Griff !!! Pin
pkfox19-Jun-22 23:23
professionalpkfox19-Jun-22 23:23 
GeneralRe: Oi Griff !!! Pin
Randor 19-Jun-22 23:36
professional Randor 19-Jun-22 23:36 
GeneralI am a suspected spammer Pin
pkfox19-Jun-22 22:36
professionalpkfox19-Jun-22 22:36 
GeneralRe: I am a suspected spammer Pin
Richard Deeming19-Jun-22 22:39
mveRichard Deeming19-Jun-22 22:39 
GeneralRe: I am a suspected spammer Pin
Kornfeld Eliyahu Peter19-Jun-22 22:48
professionalKornfeld Eliyahu Peter19-Jun-22 22:48 
GeneralRe: I am a suspected spammer Pin
pkfox19-Jun-22 22:59
professionalpkfox19-Jun-22 22:59 
GeneralRe: I am a suspected spammer Pin
Kornfeld Eliyahu Peter19-Jun-22 23:07
professionalKornfeld Eliyahu Peter19-Jun-22 23:07 
GeneralRe: I am a suspected spammer Pin
Cp-Coder20-Jun-22 4:34
Cp-Coder20-Jun-22 4:34 
GeneralDecisions, decisions ... Pin
OriginalGriff19-Jun-22 21:05
mveOriginalGriff19-Jun-22 21:05 
GeneralRe: Decisions, decisions ... Pin
Kornfeld Eliyahu Peter19-Jun-22 21:30
professionalKornfeld Eliyahu Peter19-Jun-22 21:30 
GeneralRe: Decisions, decisions ... Pin
OriginalGriff19-Jun-22 21:42
mveOriginalGriff19-Jun-22 21:42 
GeneralRe: Decisions, decisions ... Pin
pkfox19-Jun-22 21:36
professionalpkfox19-Jun-22 21:36 
GeneralRe: Decisions, decisions ... Pin
OriginalGriff19-Jun-22 21:44
mveOriginalGriff19-Jun-22 21:44 
JokeRe: Decisions, decisions ... Pin
Daniel Pfeffer19-Jun-22 22:28
professionalDaniel Pfeffer19-Jun-22 22:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.