Converting JPEG to binary (1 and 0) format

This is the place for queries that don't fit in any of the other categories.

Converting JPEG to binary (1 and 0) format

Postby alucardris » Sat Nov 02, 2013 5:27 am

Hi,

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!
Last edited by Mekire on Sat Nov 02, 2013 7:18 am, edited 1 time in total.
Reason: First post lock.
alucardris
 
Posts: 1
Joined: Sat Nov 02, 2013 5:22 am

Return to General Coding Help

Who is online

Users browsing this forum: Google [Bot], XndrK and 4 guests