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)
I have tried doing this with binascii module in python, but there seems to be a problem of encoding that i cannot comprehend.
It would be really great if someone could help me out with this!
P.S: A solution in Java would be even more appreciated