This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 12761
    
    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?
 
Similar Threads
Applet Communicate with Javascript
Encoding 8859_1 to 8859_7
Writing application to send Fax from Nokia 9500
How can I change the SocketFactory at runtime?
serializing solution for org.w3c.Node