File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.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:
subject: Image Serialization
jQuery in Action, 3rd edition