aspose file tools*
The moose likes Distributed Java and the fly likes Image Serialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Image Serialization" Watch "Image Serialization" New topic
Author

Image Serialization

Pratik Khetia
Ranch Hand

Joined: Jun 29, 2001
Posts: 50
Hi,
I am trying to send a buffered image to a RMI server. But it gives this problem.
java.io.NotSerializableException: java.awt.image.BufferedImage
I have read somewhere that there is a way to convert image into an array of bytes. I could not find enough information on that if anybody has idea. I would really appriciate it.
Pratik


Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

You might be thinking of java.awt.image.PixelGrabber, which allows you to store an image as an array of bytes.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Image Serialization