This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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: 12791
    
    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.
 
Don't get me started about those stupid light bulbs.
 
subject: How can I transmit an Image through RMI connection?