Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A question about BufferedImage class.

 
Yanxin Zhao
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
How to convert BufferedImage into a format that I can send the BufferedImage pic to the server side from client said ?
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on how you want to send it. Why can't you send the BufferedImage object? Can you give some more details?
 
Yanxin Zhao
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry about what I said was not detail enough.
In fact, I just cut a picture from camera. I wanted to used it in another place, so the pic have to across the network to another computer.
Of course, I also want to send the BufferedImage to the server side. But you know, BufferedImage is not the class that implemented the java.io.Serializable. So BufferedImage can not across the network. Maybe some class can convert it into a instance of a Output class so that I can send it by byte[]. but I do not know how?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic