Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image Serialization

 
Pratik Khetia
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic