java - convert audio,mp3 file to string and vice versa -


Is it possible to change the audio MP3 file in a string file, or read the MP3 file and write it in a text file And on the contrary?

If possible, how? Also, does the text file size of the original file or audio file be larger or equal to?

Files like an MP3, all the files are just binary encoded data which can be interpreted separately That's what you use to see that data.

If you are asking that you can convert an audio file to a string then this is a wrong question because binary data is only seen as a string when an alphabet-encoding is given (You can open your MP3 file notepad and read 'if you want').

However, if you are asking how you can read from MP3 files and write on the second file, then this is the code for it.

  Public string refill (string filename) {// variable MP3 file string line = "" represents a line of data; Try {br = new BufferedReader (new FileReader (new file (filename))); While (br.readline ()! = Null) {line + br.readLine try {if (br == null) {// close reader, when all data is read br.close (); }} Catch (Filnotfoot Exception e) {E.Message (); } Hold (IOException e) {e.printStackTrace (); }} Catch (Filnotfoot Exception E) {E.Message (); } Hold (IOException e) {e.printStackTrace (); }}   

Then to call in another file by calling the file reader method in another file.

  Public Zero Output Data (String Output File) {try file {File} FileWriter fileStream = New FileWriter (outputFile); BufferedWriter Author = New BufferedWriter (fileStream); Writer.write (readFile (MP3 File Directory)); // Close author authors.clo (); // handle exception} hold (exception e) {e.printStackTrace (); }}    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

c# - Confused over DLL entry points (entry point not found exception) -