Image will be just like chess board kind (actual image will contain some random pattern not uniform pattern like this sample image).
Is there any way to convert these kind of images into binary stream like?
10101010
01010101 ...... ....
preferred programming languages: java, jquery, javascript, php