Actually,Im not sure how to handle (image)file that is uploaded by user to manipulate it locally using servlets? what packages can be used for this purpose?
You would use the javax.imageio.ImageIO class to read and write images from and to disk. Once you have a BufferedImage object, you can use the getRGB and setRGB methods to manipulate its pixels.