• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I transmit an Image through RMI connection?

 
Shay Gaghe
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic