mardi 23 décembre 2014

convert audio file to a byte array in matlab

I want to convert an audio file(.wav/.mp3) to a byte array like in c#. here's my c# code.



string imageName = Guid.NewGuid().ToString() + ".mp3";
byte[] file = System.Convert.FromBase64String(Filep);
File.WriteAllBytes(Server.MapPath("FILE/" + imageName), file);
return imageName;

Aucun commentaire:

Enregistrer un commentaire