This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
We are using java.awt.image.PixelGrabber class to grab pixels from an GIF image. We are getting an error when we called grabPixels() method on the uploaded image. An error is thrown when it is reading all the pixels and an exception is caught in the catch block.
When we tried searching for the possible causes for the problem, we found that one reason may be the image is not fully loaded and grabpixels() method is called on that image.
Can anyone let us know any other possible cause for this error. If the cause that I have mentioned above is a valid one then please let us know how to ensure that the image is fully loaded before we call grabPixels() method.