wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes A question about BufferedImage class. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "A question about BufferedImage class." Watch "A question about BufferedImage class." New topic
Author

A question about BufferedImage class.

Yanxin Zhao
Ranch Hand

Joined: May 05, 2004
Posts: 65
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

Joined: Jul 11, 2001
Posts: 15299
    
    6

Depends on how you want to send it. Why can't you send the BufferedImage object? Can you give some more details?


GenRocket - Experts at Building Test Data
Yanxin Zhao
Ranch Hand

Joined: May 05, 2004
Posts: 65
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.
 
subject: A question about BufferedImage class.
 
Similar Threads
out of memoey!! how to release a BufferedImage
rendering html into image
Setting java.awt.Image background color
Rotating image in JLabel
How does something get Double Buffered