File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get byte[] from the Image
 
Similar Threads
Java2D: byte[ ] from an Image
How to Upload Image in to Server?
Send Image to web service
How to get byte[] from the Image?
Image object to png Image format