• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Deepa Jeeva
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.


 
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic