This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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.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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Image Serialization
jQuery in Action, 3rd edition