read a audio file into a byte array from sd card in android
joyson fernandes
Greenhorn
Joined: Oct 13, 2012
Posts: 1
posted
0
Can someone tell me how do i read the mp3/mp4... audio files into a byte array .The audio files are present on my sdcard.I have been able to retrieve the audio files from my sd card however i do not know how to read the audio files into a byte array.Can some one please help me do this.I am a newbie to android ...any help is appreciable.Thanks.
However when i insert this statement
File file = new File(sdcard,"New_Airtell_2011.mp3");
to read a mp3 file it does not give me the byte array of the mp3 file .Whereas i get the byte array for the text file .