File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes can we serialize images Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "can we serialize images" Watch "can we serialize images" New topic
Author

can we serialize images

gagan narula
Greenhorn

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

Joined: Aug 16, 2005
Posts: 12911
    
    3

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 7 API documentation
Scala Notes - My blog about Scala
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2300
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: can we serialize images
 
Similar Threads
HashTable is serializable?
serialization
images inserting
Need clarity on a basic question about Serialization
Java Object - XML