Please help me to convert Image into ascii value

sir,i am a beginner for processing…my aim is convert any image into a blinking LED.i did any ascii value into blinking LEd via arduino…Now i need to know how to convert a given image into ascii value… …because i did ascii into blinking LED…i thaught it can doing with processing…with serial communication… plz help me to import an image via processing and convert into ascii value …this project is important for my studies.i need some help

How do you want to do this conversion from image to ascii?

You could for loop over each pixel of the image and assign the degrees of brightness or color certain ascii values.

Do you mean this?

my project is lifi…i have made a arduino simple project to send any ascii value via blinking LED…other side i have made recieving side with a photo resister.i got that sgnals(from the blinking LED) to the LDR (in the recieving side) and decoded to the previous ascii value which is input to the sending side earlier…sending a ascii value through the visible light is ok…
now i want to send a image via visible light …please give me solution.i still have a method to conversion.i just thaught if i have a method of converting imaging into ascii i can coonect to the arduino part

my aim is sending any image from the transmiting part to the recieving side…therefore i just want to encode image …i just did sending ascii values to the other side…i just thaught if there any method to doing in processing to sending a image to the. other side…plz giv me a solution…

If you are using a LDR as receiver you will get integers or floats on your analog port. So why do you want to work with ascii characters?
You can load an image with img = loadImage(“yourImage.png”); and than get the color of the pixels using the pixel array with loadPixels() and then (since you are working with LDR meaning black and white) get the brightness of the color with brightness©.
You can convert this to a character(ascii?), but I still do not understand why you would want this.

i am a beginner for processing.my project is transmitting ascii value or image through a blinking LED and recieving those ascii and image via LDR…
But i did sending and recieving ascii value…it succeed.My transmitting arduinocode is given above…
Dear all, now , first i want to transmiting an image .i thaught it is doing by processing.whole this transmiting part is doing with arduino + processing serial communication.
Please write and make my code to transmit an image too.

Read this.