This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 12760
    
    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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
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