aspose file tools*
The moose likes Distributed Java and the fly likes How can I transmit an Image through RMI connection? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "How can I transmit an Image through RMI connection?" Watch "How can I transmit an Image through RMI connection?" New topic
Author

How can I transmit an Image through RMI connection?

Shay Gaghe
Ranch Hand

Joined: Sep 03, 2001
Posts: 102
Hi
How can I transmit an Image through RMI connection?
I would like to receive a code that allow it.
Thanks
Shay Gaghe
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
Seems to me that a byte[] or int[] (depending on what format you have the image in) would work just fine.
Bill
Kris Schneider
Ranch Hand

Joined: Feb 14, 2001
Posts: 71
If you can use Swing, javax.swing.ImageIcon is serializable. If not, at least check out the code for its readObject and writeObject methods to see how it's done.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How can I transmit an Image through RMI connection?