If suppose I have a file such as music.mp3
or image.jpg
or any file to be considered. How do i get the binary representation of those files to a string value in java so that i can view it ??
Eg: Suppose I have file called 'video.mp4'
then it must be represented as 101011010101000111010
or something like that in memory i need to get the value and store it in String like String s = "101011010101000111010"
Does anyone have any idea on how to do this in java ??
EDIT 2 How can i convert back the string to the actual file ??