Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing Image object to socket

 
Kashif Iqbal Khan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I Have a java.awt.Image and java.awt.image.BufferredImage object. What I need to do is to transfer it to a java.net.Socket's output stream . Can any1 provide me some starting code with it. I know I will have to create a ObjectoutputStream for that but i need a clear example. Thank you for support
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the Java Tutorial on Object Serialization.
 
If you're gonna buy things, buy this thing and I get a fat kickback:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!