This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to get byte[] from the Image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to get byte[] from the Image" Watch "How to get byte[] from the Image" New topic
Author

How to get byte[] from the Image

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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...
 
wood burning stoves
 
subject: How to get byte[] from the Image
 
Similar Threads
How to Upload Image in to Server?
Image object to png Image format
Java2D: byte[ ] from an Image
How to get byte[] from the Image?
Send Image to web service