This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes can we serialize images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "can we serialize images" Watch "can we serialize images" New topic

can we serialize images

gagan narula

Joined: Nov 05, 2006
Posts: 18
can we serialize images if yes thn how
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14950

You can use class javax.imageio.ImageIO to load and save images in different image file formats.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Serialization is required so that the objects can be written to streams of bytes.Image by itself are binary so no need to serialize.If just sending to any outputstream is the concern then you can use that as it is.But if you want to strialize as object then you may read to bytes of image to object and serialize that.

Rahul Bhattacharjee
LinkedIn - Blog
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: can we serialize images
jQuery in Action, 3rd edition