Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get byte[] from the Image

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone give me a hint on how to a get a byte[] array or InputStream from the Image/Icon object. Need to store an image that doesn't come from the filessytem in the DB's LONG RAW field.
I can get int[] with PixelGrabber class, but how does one convert it to byte[]?
thanks...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic