title: Converting JPEG to binary (1 and 0) format
body: <p>I want to convert a JPEG file into its binary equivalent and then convert it back to its JPEG form.
  i.e Convert a JPEG file into 1's and 0's and output this into a text file and then take this text file and convert it back to the original image (Just to check if there are no errors in conversion)</p>
  
  <p>I have tried doing this with binascii module in python, but there seems to be a problem of encoding that i cannot comprehend.</p>
  
  <p>It would be really great if someone could help me out with this!</p>
  
  <p>P.S: A solution in Java would be even more appreciated</p>