aspose file tools*
The moose likes Java in General and the fly likes Error while using grapPixels() method of java.awt.image.PixelGrabber class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error while using grapPixels() method of java.awt.image.PixelGrabber class" Watch "Error while using grapPixels() method of java.awt.image.PixelGrabber class" New topic
Author

Error while using grapPixels() method of java.awt.image.PixelGrabber class

Deepa Jeeva
Greenhorn

Joined: May 27, 2008
Posts: 26
Hi,

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.

Thanks in Advance.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

If you want to ensure your image is fully loaded before you do anything, check out the MediaTracker class.

You haven't told us what error nor have you posted the stack trace, and expect us to somehow figure out what is causing it?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Deepa Jeeva
Greenhorn

Joined: May 27, 2008
Posts: 26
Hi,
Am getting the below error while uploading an image.


Exception [com.americanexpress.gismo.infrastructure.util.gif2pseg.GraphicsConversionException: image fetch aborted due to an unknown error.


Thanks.


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error while using grapPixels() method of java.awt.image.PixelGrabber class
 
Similar Threads
regarding custom component development
Tricky NullPointerException Problem
PixelGrabber or BufferedImage?
Getting progress of Image filter operation (FilteredImageSource/ BufferedimageOp)
System.load()