• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can we serialize images

 
gagan narula
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we serialize images if yes thn how
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15216
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use class javax.imageio.ImageIO to load and save images in different image file formats.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic