I have a file.mp3 file right now. I need to convert it into a format of byte array. Can anyone tell me how to do it?
Question extension:
The file is not limited to .mp3 format?
In addition to byte array, I have some other options as well, e.g.
- an Object like
{ base64: "..." }with abase64-encodedString - a Buffer in Node.js runtime.
- a Stream in Node.js runtime.