I have a byte[] containing data for a file. Array can contain data for several different filetypes like xml, jpg, html, csv, etc.
I need to save that file in disk.
I'm looking for a c# code to find out proper file extension when you know content-type, but aren't sure for the file extension?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…