java - how to remove header information from mp3 file? -


is there anyway remove header information mp3 file such mp3 file can't played?

regards, hitendrasinh gohil

you have more remove header make mp3 unplayable. if take other answer question , apply whole file there should no way can played:

randomaccessfile raf = new randomaccessfile("input.mp3", "rw"); byte[] buf = new byte[65536]; long pos = 0; int len; random random = new random(34); while ((len = raf.read(buf)) != -1) {     (int = 0; < len; i++) {         buf[i] ^= random.nextint();     }     raf.seek(pos);     raf.write(buf);     pos = raf.getfilepointer(); } raf.close(); 

this xor every byte in file. reason suggested in other answer first 64k performance since you're on android device. me made unplayable on desktop. if doing whole file doesn't work suspect you're doing else wrong. there no way it'll play original music if every byte changed this. can run again undo , make mp3 playable again.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -