Aug 29, 2017 04:11 PM|MikeT89|LINK
The static file works.
I realized I'm doing something wrong when creating my wav file, I'm trying to store it in the local temp folder which won't work on a web application, (my bad),
So now I'm actually gonna try to pass the byte array data to my controller then convert it to wav or mp3. I was trying to implement one of you previous examples
public FileResult PlayAuthorization(string audio)
byte authorization = Convert.FromBase64String(audio);
return new File(authorization, "audio/wav");
On this example it seems like you're returning back the byte array to the view, do I do the convertion on my view or convert it in the controller then pass the file to the view?
Also, what audio format would you recommend to work better? Cause when I convert my byte array to wav using NAudio, there's so much background noise that I can barely here the actual audio.