The above answer that someone has suggest, converts my colored image to a black and white one. So it's not appropriate for my question.
File file = new File("path");
BufferedImage bufferedImage = ImageIO.read( file );
here is the code and below is the image. Download the image and save in your pc. And try to run the above code with a correct value of path, it will throw an exception in the topic
Download image: https://skydrive.live.com/?cid=19547371C4F3B839&id=19547371C4F3B839%21105
Simply if someone can obtain a java.awt.image.BufferedImage object from the image given that's enough (should not convert the image to gray scale one).
You are a genius if you can answer this :D. Plz help.
There's nothing wrong with your code here. I could read your image using my JPEGImageReader plugin for ImageIO. This image reader tries to be lenient about JPEG errors, and is slightly more capable than the standard Java JPEGImageReader.
However, your JPEG file seems to have a number of problems so it can't be read 100%: