How to save byte[] as wav file in silverlight application?
问题 In my MVC Application I added a Silverlight Audio Recorder. This recorder record audio using System.Windows.Media; namespace as byte[] that represents an wav file. Now I need to save this byte[] as .wav file on local disk (server). So far I've tried the following: byte[] audioData; // Here I contain my data System.IO.File.WriteAllBytes(@"C:\Temp\yourfile.wav", this.audioData); // Doesn't work BinaryWriter Writer = null; string name = @"C:\Temp\yourfile.wav"; try { Writer = new BinaryWriter