jQuery in Action, 3rd edition
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Image Serialization" Watch "Image Serialization" New topic

Image Serialization

Pratik Khetia
Ranch Hand

Joined: Jun 29, 2001
Posts: 50
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.

Michael Ernest
High Plains Drifter

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
I agree. Here's the link: http://aspose.com/file-tools
subject: Image Serialization
It's not a secret anymore!